]>
git.gir.st - ttxd.git/blob - src/thttpd-2.27/scripts/thttpd.sh
3 # thttpd.sh - startup script for thttpd on FreeBSD
5 # This goes in /usr/local/etc/rc.d and gets run at boot-time.
8 # thttpd_enable='YES/NO'
9 # thttpd_program='path'
10 # thttpd_pidfile='path'
14 # REQUIRE: LOGIN FILESYSTEMS
22 load_rc_config
"$name"
25 thttpd_enable
="${thttpd_enable:-'NO'}"
26 thttpd_program
="${thttpd_program:-'/usr/local/sbin/thttpd'}"
27 thttpd_pidfile
="${thttpd_pidfile:-'/var/run/thttpd.pid'}"
31 if [ '' != "$thttpd_devfs" ] ; then
32 mount
-t devfs devfs
"$thttpd_devfs"
33 devfs
-m "$thttpd_devfs" rule
-s 1 applyset
34 devfs
-m "$thttpd_devfs" rule
-s 2 applyset
40 kill -USR1 `cat "$pidfile"`
43 command="$thttpd_program"
44 pidfile
="$thttpd_pidfile"
45 start_precmd
='thttpd_precmd'
46 stop_cmd
='thttpd_stop'