1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-31 21:57:12 +00:00
freebsd-ports/sysutils/idled/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