How to debug why a service doesn't want to start.

"Charles M. Gerungan" <[email protected]>
Newsgroups gmane.comp.misc.pape.general
Message-ID <[email protected]>
This is the first time I can't figure out why a service doesn't want  
to start.

First, the files:

# cat /var/svc.d/users/wwwadmin/run
#!/bin/sh -e

USER=`basename $PWD`
SVPATH=/home/$USER/service

exec 2>&1
exec chpst -u$USER runsvdir $SVPATH
###

# cat /var/svc.d/users/wwwadmin/log/run
#!/bin/sh
exec chpst -ulog svlogd -t ./main
###

When I run this from the shell, I'm getting a nice, expected,  
silence. When letting runit supervise this service, it stays down.  
Nothing gets logged to the log service, and the log service is  
running (as indicated by the increasing time when doing sv status).  
`ps wwaux` shows me all dots after runsvdir -P /service log.

What can I do to investigate this issue more?

This box is running under FreeBSD 5.4-RELEASE-p15 #4.

-- 
Regards, Charles.
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.