aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/triggerhappy/triggerhappy.initd
diff options
context:
space:
mode:
Diffstat (limited to 'unmaintained/triggerhappy/triggerhappy.initd')
-rw-r--r--unmaintained/triggerhappy/triggerhappy.initd12
1 files changed, 12 insertions, 0 deletions
diff --git a/unmaintained/triggerhappy/triggerhappy.initd b/unmaintained/triggerhappy/triggerhappy.initd
new file mode 100644
index 0000000000..ac707e927c
--- /dev/null
+++ b/unmaintained/triggerhappy/triggerhappy.initd
@@ -0,0 +1,12 @@
+#!/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"
+
+depend() {
+ before udev
+}