Hi,

i am experimenting with replacing my radwatch with daemontools. My first simple startscript looks like attached and seems to work. I just have a little problem with the last startoption i called shutdown. It invokes the command "svc -dx", which should stop radiusd and also kill the supervising process. But - radiusd always comes up after shutdown. All i see is a short defunct...

30953 pts/5 S 0:00 svscan
30954 pts/5 S 0:00 multilog t /var/log/svscan
30955 pts/5 Z 0:00 [supervise <defunct>]

...and then all up again...

30953 pts/5 S 0:00 svscan
30954 pts/5 S 0:00 multilog t /var/log/svscan
30961 pts/5 S 0:00 supervise radiusd
30962 pts/5 S 0:02 /usr/local/sbin/radiusd -s -f

Has anybody solved this formerly?

regards,
Oliver



#!/bin/sh
#
# radiusd Start the radius daemon with daemontools.

test -f $RADIUSD || exit 0

set -e

case "$1" in
start)
svc -u /service/radiusd
;;
stop)
svc -d /service/radiusd
;;
reload|force-reload)
svc -h /service/radiusd
;;
restart)
svc -d /service/radiusd
sleep 1
svc -u /service/radiusd
;;
shutdown)
svc -dx /service/radiusd
;;
*)
echo "Usage: /etc/init.d/$NAME1 {start|stop|reload|restart|shutdown}"
exit 1
esac

exit 0



- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to