diff options
author | Robby Workman <rworkman@slackbuilds.org> | 2021-07-18 02:31:44 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-07-19 16:23:32 +0700 |
commit | 828a7a28d55221d19ab7026663153cc88271194d (patch) | |
tree | ad9ae22552404292c1386736e5ad9715b189dccd | |
parent | 8e08bbd4b89d68ba2b1addc9cf5c07681f7ac2d7 (diff) |
network/ircd-hybrid: Use setpriv instead of su for init
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | network/ircd-hybrid/rc.ircd.new | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/network/ircd-hybrid/rc.ircd.new b/network/ircd-hybrid/rc.ircd.new index 056641aea963..448e269a399e 100644 --- a/network/ircd-hybrid/rc.ircd.new +++ b/network/ircd-hybrid/rc.ircd.new @@ -24,7 +24,7 @@ ircd_start() { mkdir -p $(dirname $PIDFILE) chown ircd:ircd $(dirname $PIDFILE) chmod 0750 $(dirname $PIDFILE) - sudo -u $NAME $DAEMON $DAEMON_ARGS + setpriv --reset-env --reuid $NAME $DAEMON $DAEMON_ARGS } ircd_stop() { |