5 PIDFILE
=/var
/run
/$NAME.pid
6 DAEMON_ARGS
="--daemon --triggers /etc/triggerhappy/triggers.d --socket /var/run/thd.socket --pidfile $PIDFILE --user nobody /dev/input/event*"
9 test -x $DAEMON ||
exit 0
11 [ -r /etc
/default
/triggerhappy
] && .
/etc
/default
/triggerhappy
14 printf "Starting $NAME: "
15 start-stop-daemon
--start --quiet --pidfile $PIDFILE --exec $DAEMON -- $DAEMON_ARGS \
16 && echo "OK" ||
echo "FAIL"
20 printf "Stopping $NAME: "
21 start-stop-daemon
--stop --quiet --pidfile $PIDFILE \
22 && echo "OK" ||
echo "FAIL"
38 echo "Usage: $0 {start|stop|restart}"