Re: supervise not running

Larry Weldon <[email protected]>
Newsgroups gmane.network.djbdns
Message-ID <1221315639.4335.8.camel@tiger>
On Sat, 2008-09-13 at 22:54 +0930, Daryl Tester 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.
> 
> You didn't report that readproctitle had reported anything.

readproctitle was not in the process list at all.

> 
> > I showed the links and paths as well as the
> > fact that svscanboot & causes everything to work again.
> 
> Not knowing what your path is, I've no idea where "svscanboot" is
> being picked up from, whereas in your inittab it's specified exactly
> as "/command/svscanboot", so you may want to run that instead.
> Likewise for showing the symbolic links but not the final executable.
> 

the path is /command/svscanboot

the command line in svscanboot which is supposed to start it all...
/command/svc -dx /service/* /service/*/log

I thought svscan was supposed to start it...

> Modify svscanboot (warning: these are based on what my svscanboot
> scripts looks like, not yours, so results may vary) - try adding:
> 
> exec >> /tmp/svscanboot.log 2>&1
> set -x
> echo `date` starting
> 
> early in the script, and be sure to comment out the subsequent
> "exec > /dev/null" and "exec 2> /dev/null".  Reboot, if the file got
> created, the svscanboot script ran.  If it contains errors, even better.
> 

Great! I put the results at the bottom of this email...

[snip]

> I'd expect init to record something to wherever init records logs these
> days (possibly "process spawning too rapidly") if it was having problems
> executing the script.
> 

contents of /tmp/svscanboot.log
++ date
+ echo Sat Sep 13 10:03:30 EDT 2008 starting
Sat Sep 13 10:03:30 EDT 2008 starting
+ /command/svc
-dx /service/dnscache /service/qmail-pop3d /service/qmail-send /service/qmail-smtpd /service/tinydns /service/dnscache/log /service/qmail-pop3d/log /service/qmail-send/log /service/qmail-smtpd/log /service/tinydns/log
svc: warning: unable to control /service/dnscache: supervise not running
svc: warning: unable to control /service/qmail-pop3d: supervise not
running
svc: warning: unable to control /service/qmail-send: supervise not
running
svc: warning: unable to control /service/qmail-smtpd: supervise not
running
svc: warning: unable to control /service/tinydns: supervise not running
svc: warning: unable to control /service/dnscache/log: supervise not
running
svc: warning: unable to control /service/qmail-pop3d/log: supervise not
running
svc: warning: unable to control /service/qmail-send/log: supervise not
running
svc: warning: unable to control /service/qmail-smtpd/log: supervise not
running
svc: warning: unable to control /service/tinydns/log: supervise not
running
+ env -
PATH=/command:/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin svscan /service
+ env -
PATH=/command:/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin readproctitle service errors: ................................................................................................................................................................................................................................................................................................................................................................................................................

Thanks for the help.

Larry
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.