From 030fc25c9200cf48a5fd68aaea8d8decde443360 Mon Sep 17 00:00:00 2001 From: Alex Suykov Date: Sat, 23 May 2015 13:04:42 +0300 Subject: [PATCH] input-event-daemon: systemd support Signed-off-by: Alex Suykov Signed-off-by: Thomas Petazzoni --- package/input-event-daemon/input-event-daemon.mk | 8 ++++++++ package/input-event-daemon/input-event-daemon.service | 9 +++++++++ 2 files changed, 17 insertions(+) create mode 100644 package/input-event-daemon/input-event-daemon.service diff --git a/package/input-event-daemon/input-event-daemon.mk b/package/input-event-daemon/input-event-daemon.mk index 67b8cc4ba6..0d23037ff6 100644 --- a/package/input-event-daemon/input-event-daemon.mk +++ b/package/input-event-daemon/input-event-daemon.mk @@ -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)) diff --git a/package/input-event-daemon/input-event-daemon.service b/package/input-event-daemon/input-event-daemon.service new file mode 100644 index 0000000000..d91e655ff9 --- /dev/null +++ b/package/input-event-daemon/input-event-daemon.service @@ -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 -- 2.30.2