1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
#!/bin/sh
#
# This file was automatically customized by debmake on Tue, 19 Jan 1999 11:36:38 -0700
#
# Written by Miquel van Smoorenburg <miquels@cistron.nl>.
# Modified for Debian GNU/Linux by Ian Murdock <imurdock@gnu.org>.
# Modified for Debian by Christoph Lameter <clameter@debian.org>
PATH=/bin:/usr/bin:/sbin:/usr/sbin
DAEMON=/usr/sbin/rrlogind
FLAGS="defaults 20"
test -f $DAEMON || exit 0
case "$1" in
start)
start-stop-daemon --start --verbose --exec $DAEMON -- -t
touch /var/lock/subsys/roadrunner
;;
stop)
if test -s /var/run/rrlogind.pid
then
kill -9 `cat /var/run/rrlogind.pid` 2>&1
sleep 2
rm -f /var/lock/subsys/roadrunner /var/run/rrlogind.pid >/dev/null 2>&1
fi
;;
restart|force-reload)
/etc/init.d/rrlogind stop
sleep 1
/etc/init.d/rrlogind start
;;
*)
echo "Usage: /etc/init.d/rrlogind {start|stop|restart|force-reload}"
exit 1
;;
esac
exit 0
|