aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/lighttpd/files/lighttpd.service
diff options
context:
space:
mode:
authorMuhammad Shakeel <muhammad_shakeel@mentor.com>2013-09-04 11:05:00 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-09-10 23:13:33 +0100
commit36e3d63abaeafc5d2e671bad45b599c159ed10ab (patch)
tree1471a09774e20e580dd7c5a21c6e8fd7754b454e /meta/recipes-extended/lighttpd/files/lighttpd.service
parent6e6445d487c033913a29763f8e3a7a339d5b612d (diff)
downloadopenembedded-core-36e3d63abaeafc5d2e671bad45b599c159ed10ab.tar.gz
lighttpd: Add systemd support
- Remove dependency on meta-systemd Signed-off-by: Muhammad Shakeel <muhammad_shakeel@mentor.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/lighttpd/files/lighttpd.service')
-rw-r--r--meta/recipes-extended/lighttpd/files/lighttpd.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/meta/recipes-extended/lighttpd/files/lighttpd.service b/meta/recipes-extended/lighttpd/files/lighttpd.service
new file mode 100644
index 0000000000..66a907aa17
--- /dev/null
+++ b/meta/recipes-extended/lighttpd/files/lighttpd.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Lightning Fast Webserver With Light System Requirements
+After=network.target
+
+[Service]
+ExecStartPre=@SBINDIR@/lighttpd -t -f @SYSCONFDIR@/lighttpd.conf
+ExecStart=@SBINDIR@/lighttpd -D -f @SYSCONFDIR@/lighttpd.conf
+ExecReload=@BASE_BINDIR@/kill -HUP $MAINPID
+
+[Install]
+WantedBy=multi-user.target
+