IRC: cleaning up stop issues

let miniircd write PID, because of persmission drop fork.
This commit is contained in:
Matthias Strubel 2018-02-23 11:41:38 +01:00
parent 732fbb868c
commit bbc0b074a6
2 changed files with 6 additions and 6 deletions

View File

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

View File

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