graceful-stop now sends SIGINT along SIGUSR1

Nodepoold is being changed to gracefully stop on SIGINT instead of
SIGUSR1: https://review.openstack.org/#/c/206562/

Given above patch, nodepoold ignore each signals while one of them is
being handled.  Hence adjust the init script to send both SIGINT and
SIGUSR1 to keep back compatibility with old nodepoold versions.

Depends-On: Ic403b9cc74bc991b682819bc4663bb4630933a8e
Change-Id: Icb93d7979806710d7998c11dadf307d4ae4422fc
This commit is contained in:
Antoine Musso 2015-07-28 16:47:03 +02:00
parent 43ff7f00bb
commit 16c9a82ec3
1 changed files with 3 additions and 0 deletions

View File

@ -79,6 +79,9 @@ do_stop()
do_graceful_stop()
{
PID=`cat $PIDFILE`
kill -INT $PID
# Old nodepoold used USR1
# New nodepoold ignores it while INT is being handled
kill -USR1 $PID
# wait until really stopped