1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-13 23:36:08 +00:00
freebsd-ports/www/aolserver/files/aolserver.sh
Steve Price aa74835d75 Provide a better rc.d startup script.
PR:		18419
Submitted by:	Matthew Braithwaite <mab@red-bean.com>
2000-05-29 03:00:28 +00:00

22 lines
324 B
Bash

#!/bin/sh
PREFIX=%%PREFIX%%/aolserver
CONFIG=${PREFIX}/nsd.tcl
case "$1" in
start)
${PREFIX}/bin/nsd8x -t ${CONFIG} -u nsadmin -g nsadmin
;;
stop)
${PREFIX}/bin/nsd8x -t ${CONFIG} -u nsadmin -g nsadmin -K
;;
*)
echo "usage: $0 {start|stop}" 1>&2
exit 64
;;
esac