#!/bin/sh
#
# lpd This shell script takes care of starting and stopping
# lpd (printer daemon).
#
# Source function library.
. /etc/init.d/functions
# See how we were called.
case "$1" in
start)
# Start daemons.
echo -n $"Starting testd: "
testd &
echo
touch /var/lock/subsys/testd
;;
stop)
# Stop daemons.
echo -n $"Shutting down testd: "
killproc testd
echo
rm -f /var/lock/subsys/testd
;;
status)
# Am I alive?
status testd
exit $?
;;
restart)
echo -n $"Shutting down testd: "
killproc testd
echo
echo -n $"Starting testd: "
testd &
echo
;;
*)
echo $"Usage: testd {start|stop|status|restart}"
exit 1
esac
exit 0
logo' rowspan='2'>
blob: 9a64801cf9b277d06109f783a5f2e1faac8c8220 (
plain)