3 # thttpd.sh - startup script for thttpd on FreeBSD
5 # This should be manually installed as:
6 # /usr/local/etc/rc.d/thttpd
7 # It gets run at boot-time.
11 # thttpd_program='/usr/local/sbin/thttpd'
12 # thttpd_pidfile='/var/run/thttpd.pid'
17 # REQUIRE: LOGIN FILESYSTEMS
24 start_precmd='thttpd_precmd'
25 stop_cmd='thttpd_stop'
26 thttpd_enable_defval='NO'
28 load_rc_config "$name"
29 command="${thttpd_program:-/usr/local/sbin/${name}}"
30 pidfile="${thttpd_pidfile:-/var/run/${name}.pid}"
31 command_args="-i ${pidfile}"
35 if [ -n "$thttpd_devfs" ] ; then
36 mount -t devfs devfs "$thttpd_devfs"
37 devfs -m "$thttpd_devfs" rule -s 1 applyset
38 devfs -m "$thttpd_devfs" rule -s 2 applyset
44 kill -USR1 `cat "$pidfile"`