Commit 030fc25c authored by Alex Suykov's avatar Alex Suykov Committed by Thomas Petazzoni
Browse files

input-event-daemon: systemd support

parent d27c0e13
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -27,4 +27,12 @@ define INPUT_EVENT_DAEMON_INSTALL_INIT_SYSV
		$(TARGET_DIR)/etc/init.d/S99input-event-daemon
endef

define INPUT_EVENT_DAEMON_INSTALL_INIT_SYSTEMD
	$(INSTALL) -D -m 644 package/input-event-daemon/input-event-daemon.service \
		$(TARGET_DIR)/usr/lib/systemd/system/input-event-daemon.service
	mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
	ln -sf /usr/lib/systemd/system/input-event-daemon.service \
		$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/input-event-daemon.service
endef

$(eval $(generic-package))
+9 −0
Original line number Diff line number Diff line
[Unit]
Description=Input Event Daemon

[Service]
ExecStart=/usr/bin/input-event-daemon --no-daemon
Restart=always

[Install]
WantedBy=multi-user.target