#!/sbin/runscript # Copyright 2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header$ depend() { need net } start() { ebegin "Starting thttpd" start-stop-daemon --start --quiet --pidfile /var/run/thttpd.pid \ --exec /usr/sbin/thttpd -- -C /etc/thttpd.conf -i /var/run/thttpd.pid eend $? } stop() { ebegin "Stopping thttpd" start-stop-daemon --stop --quiet --pidfile /var/run/thttpd.pid eend $? }