Re: supervise not running
Larry Weldon <[email protected]>
| Newsgroups | gmane.network.djbdns |
|---|---|
| Message-ID | <1221396840.4429.10.camel@tiger> |
On Sat, 2008-09-13 at 11:38 -0700, concatenate wrote: > On Sat, Sep 13, 2008 at 8:05 AM, Daryl Tester > <[email protected]> wrote: > > Larry Weldon wrote: > > > >>>>> Run "svscan /service" from the command line as root to see if any > >>>>> errors are being directly reported. > > > >>>> OK. That works but it doesn't show anything which was not already > >>>> detailed in my first post. > > > > I don't think anyone has pointed this out yet, apologies if I missed it... > > Don't forget that init reads the inittab top to bottom. If your rc > script (not the stuff in /etc/rc?.d but /etc/init.d/rc or whatever > your system uses to actually run those scripts) doesn't complete, then > init will never get to your svscanboot entry. See if rc.local or > something like that never completes. The process list will show the > existence of /etc/init.d/rc (or equivalent) if this is happening to > you. > That works. I put it right after; id:5:initdefault: # System initialization. si::sysinit:/etc/rc.d/rc.sysinit SV:123456:respawn:/command/svscanboot and just before the run levels (/etc/rc.d/rc ?) > You could always put the svcanboot inittab entry near the top as a > test, but don't leave it that way. There's a good chance your services > started by daemontools won't work properly, since things like DNS, > routes, even local filesystems might not be there since all the init > scripts haven't run yet. svscanboot will start though, and you'll know > if you're having this problem. > OK - now I'll drop it down after: l0:0:wait:/etc/rc.d/rc 0 l1:1:wait:/etc/rc.d/rc 1 l2:2:wait:/etc/rc.d/rc 2 l3:3:wait:/etc/rc.d/rc 3 l4:4:wait:/etc/rc.d/rc 4 l5:5:wait:/etc/rc.d/rc 5 l6:6:wait:/etc/rc.d/rc 6 although I should only be interested in run level 5. Is there a method I can use to find which init script is dying? As I understand you to be saying one can not finish but the machine will still finish the boot. Thanks, Larry