summarylogtreecommitdiffstats
path: root/leapd.service
diff options
context:
space:
mode:
authorrigred2019-02-01 00:53:09 +0200
committerrigred2019-02-01 00:53:09 +0200
commita2888bafe940d9f7330d03a92e91c2d5b41795c9 (patch)
treee6beef49fe86130a45bdddb00787b17b52861bd5 /leapd.service
parente625762e11e52204fa92414a1afa5342fe99381e (diff)
downloadaur-a2888bafe940d9f7330d03a92e91c2d5b41795c9.tar.gz
Fix leapd service exit
Send SIGKILL (9) to poorly written leapd Signed-off-by: Rigo Reddig <rigo.reddig@gmail.com>
Diffstat (limited to 'leapd.service')
-rw-r--r--leapd.service5
1 files changed, 5 insertions, 0 deletions
diff --git a/leapd.service b/leapd.service
index bb9d768bd417..2867c0b3361d 100644
--- a/leapd.service
+++ b/leapd.service
@@ -2,7 +2,12 @@
Description=Leap Motion Service Daemon
[Service]
+PIDFile=/var/run/leapd.pid
ExecStart=/usr/bin/leapd
+ExecStartPre=/usr/bin/rm -f /run/var/leapd.pid
+KillSignal=SIGKILL
+TimeoutStopSec=5
+KillMode=process
[Install]
WantedBy=multi-user.target