summaryrefslogtreecommitdiff
path: root/network/ircd-hybrid
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackbuilds.org>2021-07-18 02:31:44 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-07-19 16:23:32 +0700
commit828a7a28d55221d19ab7026663153cc88271194d (patch)
treead9ae22552404292c1386736e5ad9715b189dccd /network/ircd-hybrid
parent8e08bbd4b89d68ba2b1addc9cf5c07681f7ac2d7 (diff)
downloadslackbuilds-828a7a28d55221d19ab7026663153cc88271194d.tar.gz
network/ircd-hybrid: Use setpriv instead of su for init
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/ircd-hybrid')
-rw-r--r--network/ircd-hybrid/rc.ircd.new2
1 files changed, 1 insertions, 1 deletions
diff --git a/network/ircd-hybrid/rc.ircd.new b/network/ircd-hybrid/rc.ircd.new
index 056641aea9..448e269a39 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() {