Commit c986d663 authored by Mike Williams's avatar Mike Williams Committed by Thomas Petazzoni
Browse files

lighttpd: use upstream systemd service file

parent c34f42ac
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -84,12 +84,12 @@ define LIGHTTPD_INSTALL_INIT_SYSV
endef

define LIGHTTPD_INSTALL_INIT_SYSTEMD
	$(INSTALL) -D -m 0644 package/lighttpd/lighttpd.service \
		$(TARGET_DIR)/etc/systemd/system/lighttpd.service
	$(INSTALL) -D -m 0644 $(@D)/doc/systemd/lighttpd.service \
		$(TARGET_DIR)/usr/lib/systemd/system/lighttpd.service

	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
endef

package/lighttpd/lighttpd.service

deleted100644 → 0
+0 −10
Original line number Diff line number Diff line
[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