]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
Added a initscript for lighhtpd.
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 1 Nov 2008 20:03:42 +0000 (20:03 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 1 Nov 2008 20:03:42 +0000 (20:03 +0000)
lfs/initscripts
src/initscripts/core/lighttpd [new file with mode: 0644]

index dc75bcb6105f62d9c308a6b041a25f0ca07a847e..11a4f0c46f228d6e17b656d78bf43ca89ff456e0 100644 (file)
@@ -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 (file)
index 0000000..0345b04
--- /dev/null
@@ -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