aboutsummaryrefslogtreecommitdiff
path: root/system/triggerhappy/rc.triggerhappy
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2021-08-23 03:09:49 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-10-13 00:51:35 +0700
commit69946fbdb2a6e80bb732ec2f3da1a0aad4b622c5 (patch)
tree047da5c66de5873ca7fa7c3dd151b1b38598b940 /system/triggerhappy/rc.triggerhappy
parent69104d2dc7bf4fcbc57485cbe37f3edbd0a7bf2c (diff)
system/triggerhappy: Expand/fix README.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/triggerhappy/rc.triggerhappy')
-rw-r--r--system/triggerhappy/rc.triggerhappy6
1 files changed, 5 insertions, 1 deletions
diff --git a/system/triggerhappy/rc.triggerhappy b/system/triggerhappy/rc.triggerhappy
index d8f3266484bf..5dd6f3ed50f7 100644
--- a/system/triggerhappy/rc.triggerhappy
+++ b/system/triggerhappy/rc.triggerhappy
@@ -3,8 +3,12 @@
# rc.triggerhappy, sysv-style init script for triggerhappy.
# part of the slackbuilds.org triggerhappy build.
+# The daemon has to be started as root, but will drop privileges
+# and run as this user after initialization:
+THD_USER=nobody
+
THD_SOCKET=/var/run/thd.socket
-THD_ARGS="--daemon --user nobody --socket $THD_SOCKET --triggers /etc/triggerhappy/triggers.d/ /dev/input/event*"
+THD_ARGS="--daemon --user $THD_USER --socket $THD_SOCKET --triggers /etc/triggerhappy/triggers.d/ /dev/input/event*"
case "$1" in
""|"start") if [ -e $THD_SOCKET ]; then