mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-25 09:34:11 +00:00
1d3d4ec459
install. Requested by: obrien
19 lines
297 B
Bash
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
|