1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-25 09:34:11 +00:00
freebsd-ports/www/thttpd/files/thttpd.sh
2002-08-13 21:39:47 +00:00

19 lines
297 B
Bash

#!/bin/sh
case "$1" in
start)
if [ -x %%PREFIX%%/sbin/thttpd_wrapper ]; then
%%PREFIX%%/sbin/thttpd_wrapper &
echo -n ' thttpd'
fi
;;
stop)
kill `cat /var/run/thttpd_wrapper.pid` && killall thttpd && echo -n ' thttpd'
;;
*)
echo "Usage: `basename $0` {start|stop}" >&2
;;
esac
exit 0