supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
* Help with chpst -e
@ 2008-04-13 23:19 Robin Bowes
  2008-04-13 23:52 ` Robin Bowes
  0 siblings, 1 reply; 19+ messages in thread
From: Robin Bowes @ 2008-04-13 23:19 UTC (permalink / raw)
  To: supervision

Hi,

Is it possible to set vars using "chpst -e" and then use those vars 
later in the same command line?

e.g.

mkdir env
echo dnslog > env/LOGUSER
echo /var/log/dnscache > env/LOGDIR

Then in run:
#!/bin/sh
exec chpst -e ./env -u $LOGUSER svlogd -tt $LOGDIR

I realise that this specific example won't work - $LOGUSER and $LOGDIR 
will both retain the values they had when the script was launched.

Is what I describe above possible?

Thanks,

R.



^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2008-04-15 16:33 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-13 23:19 Help with chpst -e Robin Bowes
2008-04-13 23:52 ` Robin Bowes
2008-04-14  8:34   ` Andras Korn
2008-04-14  8:40     ` Andras Korn
2008-04-14 13:38     ` Robin Bowes
2008-04-14 13:48       ` Andras Korn
2008-04-14 14:16       ` Charlie Brady
2008-04-14 14:31         ` Robin Bowes
2008-04-14 16:41           ` Andras Korn
2008-04-14 21:00             ` Robin Bowes
2008-04-14 21:09               ` Charlie Brady
2008-04-14 21:16                 ` Robin Bowes
2008-04-14 22:17               ` Joan Picanyol i Puig
2008-04-14 22:18               ` Andras Korn
2008-04-14 23:05                 ` Robin Bowes
2008-04-15  4:27                   ` Andras Korn
2008-04-15 12:10                     ` Robin Bowes
2008-04-15 16:31                       ` Generic logging run script Robin Bowes
2008-04-15 16:33                       ` Help with chpst -e Andras Korn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).