]> git.ipfire.org Git - people/ms/ipfire-3.x.git/commitdiff
lighttpd: Add systemd unit file.
authorStefan Schantl <stefan.schantl@ipfire.org>
Fri, 1 Apr 2011 20:08:54 +0000 (22:08 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Fri, 1 Apr 2011 20:08:54 +0000 (22:08 +0200)
Reference #153.

pkgs/lighttpd/lighttpd.init [deleted file]
pkgs/lighttpd/lighttpd.nm
pkgs/lighttpd/lighttpd.tmpfile [new file with mode: 0644]
pkgs/lighttpd/systemd/lighttpd.service [new file with mode: 0644]

diff --git a/pkgs/lighttpd/lighttpd.init b/pkgs/lighttpd/lighttpd.init
deleted file mode 100644 (file)
index 801cec8..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-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
index f1ae52ff2a8c733fa709964c9c13de1eef22a8fb..fefdfd9972ad348481a3c5ba26683db57c424aa8 100644 (file)
@@ -26,7 +26,7 @@ include $(PKGROOT)/Include
 
 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
diff --git a/pkgs/lighttpd/lighttpd.tmpfile b/pkgs/lighttpd/lighttpd.tmpfile
new file mode 100644 (file)
index 0000000..b1fdefd
--- /dev/null
@@ -0,0 +1 @@
+d /var/run/lighttpd 0750 lighttpd lighttpd -
diff --git a/pkgs/lighttpd/systemd/lighttpd.service b/pkgs/lighttpd/systemd/lighttpd.service
new file mode 100644 (file)
index 0000000..04f343c
--- /dev/null
@@ -0,0 +1,12 @@
+
+[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