aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerg <uinarf@autistici.org>2023-03-06 09:55:04 +0100
committererg <uinarf@autistici.org>2023-03-06 09:55:04 +0100
commit10d09e6f715487975e1d7aa61b032182bddfa15f (patch)
treece1a2fef60f8bf303ad7ecf87090cfcca90d205a
parent49cee960e98b99294816d8a18e11f64148ed599d (diff)
downloadPi_Relay-master.tar.gz
Pi_Relay-master.tar.bz2
Pi_Relay-master.zip
Revert fix usernameHEADmaster
-rw-r--r--shroom_daemon5
1 files changed, 3 insertions, 2 deletions
diff --git a/shroom_daemon b/shroom_daemon
index a221131..708589c 100644
--- a/shroom_daemon
+++ b/shroom_daemon
@@ -3,14 +3,15 @@
# Distributed under the terms of the GNU General Public Licence v2
# Set username you want process run with. Should be your regular user
-GROUP=$(id -g ${USER})
+USERNAME="pipi"
+GROUP=$(id -g ${USERNAME})
supervisor="supervise-daemon"
command_args_foreground="--foreground"
# Could also get dir to store pid file from XDG_RUNTIME_DIR
pidfile="/run/${RC_SVCNAME}.pid"
# pidfile="/run/user/${GROUP}/${RC_SVCNAME}.pid"
extra_started_commands="reload"
-command_user="${USER}:${USER}"
+command_user="${USERNAME}:${USERNAME}"
# command_user="${USER}:${GROUP}"
command="python /usr/local/sbin/pi_relay.py"
description="Daemon for shroombox"