Re: Daemontools under Solaris 10?

"Adam D. Morley" <[email protected]> Tue, 5 Sep 2006 12:12:40 -0700
Newsgroups gmane.comp.djb.syslog
Message-ID <[email protected]>
On Tue, Sep 05, 2006 at 07:46:14AM -0400, Daniel Clark wrote:
> Does anyone have daemontools-0.76 working under Solaris 10?
> 
> The default install doesn't seem to work with Solaris 10's init ;
> running "kill -HUP 1" doesn't seem to do anything, and on a reboot I
> get this on the console:
> 
> INIT: Command is respawning too rapidly. Check for possible errors.
> id:  SV "/comand/svscanboot"
> 
> If I run "/comand/svscanboot" manually from the command line as root,
> it seems to work normally; it stays in the foreground, and "svscan
> /service" as well as the appropriate "supervise xxx" processes show up
> in "ps -ef" output.
> 
> I also have daemontools builds built the same way running on various
> AIX and GNU/Linux platforms, and they work fine.

Solaris does "strange"[1] things with procs running from init.  I use:

SV:23:respawn:/command/svscanboot < /dev/null > /dev/msglog 2>&1

on Solaris 9 and Solaris 10.  You should probably change 23 to 0123456S,
we do a different setting because we don't want svscan to run until
multi-user.

The above way puts output from svscan fd 1/2 to the "right" place, where 
right = same place as linux/etc.

[1] Where strange = different than other *nix for the same inittab
entry.

-- 
adam