Fixes IRC startup issues

Error message:

iniircd.py: error: Running this service as root is not recommended. Use the --setuid option to switch to an unprivileged account after startup. If you really intend to run as root, use "--setuid root".
This commit is contained in:
Matthias Strubel 2018-02-20 11:14:11 +01:00
parent 7f31336788
commit b4e441e953
2 changed files with 4 additions and 4 deletions

View File

@ -200,14 +200,14 @@ case "$1" in
. $CONF_IRC
IRC_PARMS="--daemon --motd $IRC_MOTD "
IRC_PARMS="--setuid $IRC_USER --daemon --motd $IRC_MOTD "
if [ ! -z "$IRC_STATEDIR" ] ; then
IRC_PARMS=" $IRCPARMS --statedir $IRC_STATEDIR "
fi
log_daemon_msg "Starting Miniircd..."
start-stop-daemon $IRC_USER -m -S -p $PIDFILE_IRC -x $PIRATEBOX/bin/miniircd.py -- $IRC_PARMS
start-stop-daemon -m -S -p $PIDFILE_IRC -x $PIRATEBOX/bin/miniircd.py -- $IRC_PARMS
log_end_msg $?
fi
fi

View File

@ -192,13 +192,13 @@ case "$1" in
#Start IRC Server
if [ "$ENABLE_IRC_SERVER" = "yes" ] ; then
. $CONF_IRC
IRC_PARMS="--daemon --motd $IRC_MOTD "
IRC_PARMS="--setuid $IRC_USER --daemon --motd $IRC_MOTD "
if [ ! -z "$IRC_STATEDIR" ] ; then
IRC_PARMS=" $IRCPARMS --statedir $IRC_STATEDIR "
fi
echo "Starting Miniircd..."
start-stop-daemon $IRC_USER -m -S -p $PIDFILE_IRC -x $PIRATEBOX/bin/miniircd.py -- $IRC_PARMS
start-stop-daemon -m -S -p $PIDFILE_IRC -x $PIRATEBOX/bin/miniircd.py -- $IRC_PARMS
echo $?
fi
fi