Re: wie shell script ordentlich beenden
start-stop-daemon, kurzes beispiel aus einem init skript von mir:
NAME=kaid
DAEMON=/usr/local/kaid/$NAME
PIDFILE=/var/run/$NAME.pid
test -x $DAEMON || exit 0
d_start() {
start-stop-daemon --start --quiet --make-pidfile \
--pidfile $PIDFILE --exec $DAEMON \
-- -c /usr/local/kaid/kaid.conf > /var/log/kaid.log &
}
d_stop() {
kill -9 `cat $PIDFILE`
}
Grüße / Regards,
Oliver
--
The surest way to remain a winner is to win once, and then not play any
more.
Reply to: