Reference #153.
+++ /dev/null
-description "Start lighttpd"
-author "IPFire Team"
-
-start on started network
-stop on kill-all-network-services or stopping network
-
-exec /usr/sbin/lighttpd -f /etc/lighttpd.conf
-expect daemon
PKG_NAME = lighttpd
PKG_VER = 1.4.28
-PKG_REL = 1
+PKG_REL = 2
PKG_MAINTAINER = Michael Tremer <michael.tremer@ipfire.org>
PKG_GROUPS = Networking/Webservers
--- /dev/null
+d /var/run/lighttpd 0750 lighttpd lighttpd -
--- /dev/null
+
+[Unit]
+Description=Lighttpd Daemon
+After=network.target
+
+[Service]
+ExecStartPre=/usr/sbin/lighttpd -t -f /etc/lighttpd.conf
+ExecStart=/usr/sbin/lighttpd -D -f /etc/lighttpd.conf
+ExecReload=/bin/kill -HUP $MAINPID
+
+[Install]
+WantedBy=multi-user.target