freebsd-ports/sysutils/doinkd/files/idled.sh
Will Andrews dcb4cb482a Add startup script.
PR:		20458
Submitted by:	James Howard <howardjp@wam.umd.edu>
2000-08-11 01:34:09 +00:00

24 lines
355 B
Bash

#!/bin/sh
case "$1" in
start)
/usr/local/libexec/idled
echo -n ' idled'
;;
stop)
killall -TERM idled
echo "idled stopped"
;;
restart)
killall -TERM idled
/usr/local/libexec/idled
echo "idled restarted"
;;
-h)
echo "Usage: `basename $0` { start | stop | restart }"
;;
*)
/usr/local/libexec/idled
echo -n ' idled'
;;
esac