From: Michael Tremer Date: Sat, 1 Nov 2008 20:03:42 +0000 (+0000) Subject: Added a initscript for lighhtpd. X-Git-Tag: v3.0-alpha1~489 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eae9985bb74a3f31820b988153dfd13cfbe9e22e;p=ipfire-3.x.git Added a initscript for lighhtpd. --- diff --git a/lfs/initscripts b/lfs/initscripts index dc75bcb61..11a4f0c46 100644 --- a/lfs/initscripts +++ b/lfs/initscripts @@ -38,6 +38,7 @@ SCRIPTS = \ console \ haldaemon \ halt \ + lighttpd \ localnet \ messagebus \ modules \ diff --git a/src/initscripts/core/lighttpd b/src/initscripts/core/lighttpd new file mode 100644 index 000000000..0345b04a9 --- /dev/null +++ b/src/initscripts/core/lighttpd @@ -0,0 +1,64 @@ +#!/bin/sh +# Begin /etc/init.d/lighttpd + +### BEGIN INIT INFO +# Provides: lighttpd +# Required-Start: $network +# Should-Start: +# Required-Stop: +# Should-Stop: netfs +# Default-Start: 3 4 5 +# Default-Stop: 0 1 2 6 +# Short-Description: Starts the lighttpd daemon. +# Description: Starts the lighttpd daemon +# which is the system's webserver. +# X-LFS-Default-Start: +# X-LFS-Default-Stop: +# X-LFS-Provided-By: +### END INIT INFO + +. /lib/lsb/init-functions + +MESSAGE="Lighttpd Daemon" +BIN_FILE="/usr/sbin/lighttpd" +CONFIGFILE="/etc/lighttpd.conf" + +chk_stat + +case "${1}" in + start) + loadproc -f $CONFIGFILE + evaluate_retval start + ;; + + stop) + endproc + evaluate_retval stop + ;; + + force-reload) + reloadproc -force + evaluate_retval force-reload + ;; + + restart) + $0 stop + $0 start + ;; + + status) + statusproc + ;; + + reload) + reloadproc + evaluate_retval reload + ;; + + *) + echo "Usage: ${0} {start|stop|{force-}reload|restart|status}" + exit 1 + ;; +esac + +# End /etc/init.d/lighttpd