lighttpd: Add systemd tmpfile to fix lighttpd systemd boot
authorLaurent Hartanerot <laurent.hartanerot@atos.net>
Mon, 30 Jul 2018 10:24:16 +0000 (12:24 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Tue, 14 Aug 2018 14:27:58 +0000 (16:27 +0200)
commit7c2eb68cac14ea1281cfaca6ab81f63e72bc8016
tree6b4aa1b1137c1db6bb80f59e362d5990f35ba09a
parent1f3f1fb8c7324c9a50383b1cafcbd2f9d74a91f9
lighttpd: Add systemd tmpfile to fix lighttpd systemd boot

Problem starting lighttpd application with systemd.

/usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf
2018-06-22 11:21:34: (server.c.733) opening errorlog '/var/log/lighttpd-error.log' failed: Permission denied
2018-06-22 11:21:34: (server.c.1420) Opening errorlog failed. Going down.

Lighttpd can not write the 'lighttpd-access.log' and 'lighttpd-error.log' files
to the directory '/var/log/'.

When using systemd the directory '/var/log' does not allow the user www-data to
write.

To correct the problem, we add /usr/lib/tmpfiles.d/lighttpd.conf.
This file create the 'lighttpd-access.log' and 'lighttpd-error.log' files  with
the permission

Signed-off-by: Laurent Hartanerot <laurent.hartanerot@atos.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/lighttpd/lighttpd.mk
package/lighttpd/lighttpd_tmpfiles.conf [new file with mode: 0644]