Ever since I got baselayout upgraded to 1.12, the init scripts that I
have written for a couple of program are acting really weird. What
happens is that they start the program normally, but then, when the
program daemonizes and detaches, it immediately kills it (with a
SIGTERM).
These scripts are also really simple, so I don't understand at all what
I could be doing wrong. Here's a sample:
#!/sbin/runscript
opts="start stop restart"
depend() {
need net
}
start() {
ebegin "Starting cidd"
start-stop-daemon -S -p /var/run/cidd.pid -qx /usr/local/sbin/cidd
eend $?
}
stop() {
ebegin "Stopping cidd"
start-stop-daemon -K -p /var/run/cidd.pid -qx /usr/local/sbin/cidd
eend $?
}
Is there anything wrong with this script that should cause it do act as
I described?
Fredrik Tolf
--
[email protected] mailing list