summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2011-06-20 23:23:28 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2011-06-20 23:23:41 +0200
commitd4bd82bf3c70629cfca6fd3b761f438a5b4be161 (patch)
tree5ebe9d6d1424895b9f92a9c7aaf9725ad8e3a95a /generic
parent35457f704339486a1a08b923f0b233654f985d16 (diff)
downloadptxdist-d4bd82bf3c70629cfca6fd3b761f438a5b4be161.tar.gz
ptxdist-d4bd82bf3c70629cfca6fd3b761f438a5b4be161.tar.xz
lighttpd: add systemd support
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'generic')
-rw-r--r--generic/lib/systemd/system/lighttpd.service10
-rw-r--r--generic/usr/lib/tmpfiles.d/lighttpd.conf1
2 files changed, 11 insertions, 0 deletions
diff --git a/generic/lib/systemd/system/lighttpd.service b/generic/lib/systemd/system/lighttpd.service
new file mode 100644
index 000000000..0ca5357f5
--- /dev/null
+++ b/generic/lib/systemd/system/lighttpd.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Lighttpd Web Server
+After=network.target
+
+[Service]
+ExecStart=/usr/sbin/lighttpd-angel -f /etc/lighttpd/lighttpd.conf -D
+ExecReload=/bin/kill -HUP $MAINPID
+
+[Install]
+WantedBy=multi-user.target
diff --git a/generic/usr/lib/tmpfiles.d/lighttpd.conf b/generic/usr/lib/tmpfiles.d/lighttpd.conf
new file mode 100644
index 000000000..6600f1308
--- /dev/null
+++ b/generic/usr/lib/tmpfiles.d/lighttpd.conf
@@ -0,0 +1 @@
+d /var/log/lighttpd 0750 www www -