input-event-daemon: systemd support

Signed-off-by: Alex Suykov <alex.suykov@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
Alex Suykov 2015-05-23 13:04:42 +03:00 committed by Thomas Petazzoni
parent d27c0e13e8
commit 030fc25c92
2 changed files with 17 additions and 0 deletions

View File

@ -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))

View File

@ -0,0 +1,9 @@
[Unit]
Description=Input Event Daemon
[Service]
ExecStart=/usr/bin/input-event-daemon --no-daemon
Restart=always
[Install]
WantedBy=multi-user.target