summaryrefslogtreecommitdiffstats
path: root/testing/triggerhappy/triggerhappy.initd
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-02-28 12:57:51 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-02-28 12:59:39 +0000
commit540556b311c1f642969eb9e1259072696c8ee99f (patch)
tree43b7fa368224b88b6ffba538d3bcbbef471bb22e /testing/triggerhappy/triggerhappy.initd
parent8ac336d8c9b889ad571754b39b3f9da5e07a826b (diff)
downloadaports-540556b311c1f642969eb9e1259072696c8ee99f.tar.bz2
aports-540556b311c1f642969eb9e1259072696c8ee99f.tar.xz
testing/triggerhappy: new aport
A lightweight hotkey daemon https://github.com/wertarbyte/triggerhappy
Diffstat (limited to 'testing/triggerhappy/triggerhappy.initd')
-rw-r--r--testing/triggerhappy/triggerhappy.initd10
1 files changed, 10 insertions, 0 deletions
diff --git a/testing/triggerhappy/triggerhappy.initd b/testing/triggerhappy/triggerhappy.initd
new file mode 100644
index 000000000..18b073cfb
--- /dev/null
+++ b/testing/triggerhappy/triggerhappy.initd
@@ -0,0 +1,10 @@
+#!/sbin/runscript
+
+: ${socket:=/var/run/thd.socket}
+: ${triggers:=/etc/triggerhappy/triggers.d}
+
+command=/usr/sbin/thd
+pidfile=/var/run/thd.pid
+command_args="--daemon --socket $socket --triggers $triggers $devices --pidfile $pidfile"
+
+