Red Hat Bugzilla – Bug 720210
Provide native systemd unit file for lighttpd
Last modified: 2012-04-18 09:25:20 EDT
Description of problem:
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Created attachment 512120 [details]
Native systemd service file for lighttpd
Pushed to Rawhide, though untested yet until I have a systemd enabled machine available.
lighttpd doesn't start every-time with new systemd (systemd-35-1.fc16 and systemd-37-2.fc16 tested on F16 in VM, although it works on systemd-26-9 on F15). It seems like it starts correctly only the first time after system daemon is reload, so it is a race condition.
It seems to me like the PID file is not created fast enough, because systemd reports: "Failed to read PID file /var/run/lighttpd.pid after start. The service might be broken." If I run the daemon manually, the PID file is created right.
I'm proposing an easy patch that fixes the failure for me -- just don't demonize the daemon:
@@ -3,10 +3,9 @@ Description=Lightning Fast Webserver With Light System Requirements
-ExecStart=/usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf
+ExecStart=/usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf
Same problem here. Honza's patch work for me.
+1 for the change from Honza.
Mattias, any objection to my committing Honza's changes?
Sorry for missing this. Thanks Jon for fixing this.
No worries, anytime. If you have any other packages needing this you'd like me to do, email me.