summaryrefslogtreecommitdiff
path: root/games-util/xboxdrv/files/xboxdrv.service
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2018-04-11 10:40:08 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2018-04-11 10:40:08 +0300
commit375cf3d9ce71cc0a55f319dd2188c1bf03d7b057 (patch)
treeb27cc2183fb2467843678a77eef1a95f9b41a493 /games-util/xboxdrv/files/xboxdrv.service
parentf151afa59c71f98664e94f4e974ebabac6daf757 (diff)
xboxdrv-scm
Diffstat (limited to 'games-util/xboxdrv/files/xboxdrv.service')
-rw-r--r--games-util/xboxdrv/files/xboxdrv.service14
1 files changed, 14 insertions, 0 deletions
diff --git a/games-util/xboxdrv/files/xboxdrv.service b/games-util/xboxdrv/files/xboxdrv.service
new file mode 100644
index 0000000..b0d3726
--- /dev/null
+++ b/games-util/xboxdrv/files/xboxdrv.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Userspace Xbox 360 Controller driver
+BindsTo=sys-subsystem-usb-xbox-controller0.device
+After=sys-subsystem-usb-xbox-controller0.device
+
+[Service]
+BusName=org.seul.Xboxdrv
+ExecStart=/usr/bin/xboxdrv --silent --daemon
+KillSignal=SIGINT
+# xboxdrv can not stop gracefully if controller gets unplugged
+TimeoutStopSec=2
+
+[Install]
+WantedBy=multi-user.target