diff options
author | Robby Workman <rworkman@slackbuilds.org> | 2021-07-16 00:25:25 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-07-17 09:50:25 +0700 |
commit | 5030b1eb9685ff63840ec04fd5c01825a0dd00ea (patch) | |
tree | 0ce2ea849bab04150b2314ae919eafe22a36b1ec /network/elemental-ircd/rc.elemental-ircd | |
parent | b8a65d7cf79e92f2160a90697bd7168eead74998 (diff) |
network/elemental-ircd: Use setpriv instead of su for init
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/elemental-ircd/rc.elemental-ircd')
-rw-r--r-- | network/elemental-ircd/rc.elemental-ircd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/network/elemental-ircd/rc.elemental-ircd b/network/elemental-ircd/rc.elemental-ircd index 25fa62013b68..7f3dd4f247d5 100644 --- a/network/elemental-ircd/rc.elemental-ircd +++ b/network/elemental-ircd/rc.elemental-ircd @@ -12,7 +12,7 @@ ircd_start() { echo "Starting elemental-ircd." mkdir -p $(dirname $PIDFILE) chown $IRCD_USER:$IRCD_GROUP $(dirname $PIDFILE) - su - $IRCD_USER -c /usr/bin/ircd + setpriv --reset-env --reuid $IRCD_USER /usr/bin/ircd } ircd_stop() { |