aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alex Suykov <alex.suykov@gmail.com>2015-05-23 13:04:42 +0300
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-07-13 20:02:29 +0200
commit030fc25c9200cf48a5fd68aaea8d8decde443360 (patch)
treef0f9de6bf940fbb82d5008ad6c0730eeda4ff467
parentd27c0e13e8edb98d89f4a504d884369a06dddfcb (diff)
downloadbuildroot-030fc25c9200cf48a5fd68aaea8d8decde443360.tar.gz
buildroot-030fc25c9200cf48a5fd68aaea8d8decde443360.tar.bz2
input-event-daemon: systemd support
Signed-off-by: Alex Suykov <alex.suykov@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/input-event-daemon/input-event-daemon.mk8
-rw-r--r--package/input-event-daemon/input-event-daemon.service9
2 files changed, 17 insertions, 0 deletions
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