[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Daemontools



On Tue, Jan 30, 2001 at 07:03:10PM -0600, Nathan E Norman wrote:
> On Tue, Jan 30, 2001 at 04:47:49PM -0800, John H. Robinson, IV wrote:
> > On Tue, Jan 30, 2001 at 06:41:10PM -0600, Nathan E Norman wrote:
> > > 
> > > DAEMON=daemon           # real name here, eh
> > > DESC=some description
> > > 
> > > case "$1" in
> > >   start)
> > >         echo -n "Starting $DESC: "
> > >         svc -u /etc/service/$DAEMON
> > >         if [ -d /etc/service/$DAEMON/log ]; then
> > >                 svc -u /etc/service/$DAEMON/log
> > 
> > this fails to set the pipe between run and log/run properly.
> > this is one of the things that svscan guarantees. (provided that the
> > $DAEMON directory is sticky, of course)
> 
> Uh, doesn't the script work _as long as_ the directory is sticky?  

After rtfm I'm still confused ... svscan will automagically start the
log process if the directory is sticky, but it's not clear to me that
svc will do the same.

-- 
Nathan Norman - Staff Engineer | A good plan today is better
Micromuse Inc.                 | than a perfect plan tomorrow.
mailto:nnorman@micromuse.com   |   -- Patton

Attachment: pgpHDuBO7VOmc.pgp
Description: PGP signature


Reply to: