lighttpd: use upstream systemd service file

Signed-off-by: Mike Williams <mike@mikebwilliams.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
Mike Williams 2015-03-20 15:13:52 -04:00 committed by Thomas Petazzoni
parent c34f42ace6
commit c986d663d7
2 changed files with 3 additions and 13 deletions

View File

@ -84,12 +84,12 @@ define LIGHTTPD_INSTALL_INIT_SYSV
endef endef
define LIGHTTPD_INSTALL_INIT_SYSTEMD define LIGHTTPD_INSTALL_INIT_SYSTEMD
$(INSTALL) -D -m 0644 package/lighttpd/lighttpd.service \ $(INSTALL) -D -m 0644 $(@D)/doc/systemd/lighttpd.service \
$(TARGET_DIR)/etc/systemd/system/lighttpd.service $(TARGET_DIR)/usr/lib/systemd/system/lighttpd.service
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
ln -fs ../lighttpd.service \ ln -fs ../../../../usr/lib/systemd/lighttpd.service \
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/lighttpd.service $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/lighttpd.service
endef endef

View File

@ -1,10 +0,0 @@
[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