Skip to content
Permalink
Browse files

Red Hat init.d: Adjust stop command to 2.4 shutdown behavior

The default `killproc` timeout of 3 seconds is too short, causing it to
incorrectly SIGKILL the attendant before it gets a chance to properly
finish the shutdown sequence:
    * broadcast graceful termination jobs
    * wait up to 5 sec
    * forcefully kill all workers
    * commit seppuku

(cherry picked from commit 158f98e)
  • Loading branch information
liviuchircu committed Mar 19, 2019
1 parent 47b960d commit 541f808645188b3a571ef239c9e1332fb4747984
Showing with 1 addition and 1 deletion.
  1. +1 −1 packaging/redhat_fedora/opensips.init
@@ -84,7 +84,7 @@ stop() {
return 0
fi

killproc $prog 2> /dev/null
killproc -d 10 $prog 2> /dev/null
RETVAL=$?
echo
[ $RETVAL = 0 ] && rm -f $lockfile $pidfile

0 comments on commit 541f808

Please sign in to comment.
You can’t perform that action at this time.