Annotation of embedaddon/thttpd/scripts/thttpd.sh, revision 1.1.1.1
1.1 misho 1: #!/bin/sh
2: #
3: # thttpd.sh - startup script for thttpd on FreeBSD
4: #
5: # This goes in /usr/local/etc/rc.d and gets run at boot-time.
6:
7: case "$1" in
8:
9: start)
10: if [ -x /usr/local/sbin/thttpd_wrapper ] ; then
11: echo -n " thttpd"
12: /usr/local/sbin/thttpd_wrapper &
13: fi
14: ;;
15:
16: stop)
17: kill -USR1 `cat /var/run/thttpd.pid`
18: ;;
19:
20: *)
21: echo "usage: $0 { start | stop }" >&2
22: exit 1
23: ;;
24:
25: esac
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>