freebsd-ports/net/dhisd/files/dhisd.sh
SADA Kenji 7ec459fa33 - Move install directory from bin to sbin
- Rewrite descriptions
- Change maintainer's email
2002-05-23 08:25:57 +00:00

19 lines
305 B
Bash

#!/bin/sh
case "$1" in
start)
[ -x "__PREFIX__/sbin/dhisd" ] && __PREFIX__/sbin/dhisd > /dev/null && echo -n ' dhisd'
;;
restart)
killall -HUP dhisd && echo -n 'dhisd restarted'
;;
stop)
killall dhisd && echo -n ' dhisd'
;;
*)
echo "Usage: `basename $0` {start|restart|stop}" >&2
;;
esac
exit 0