CA-39972: try extra hard to kill stunnel in 'service xapissl stop'
CA-39972: try extra hard to kill stunnel in 'service xapissl stop'

Previously we sent one SIGTERM and waited for up to 3 minutes. In a quick test, out of 1000 back-to-back 'service xapissl restart' calls, one took the full 3 minutes, as if the signal was ignored.

Now we send additional SIGTERMS as we go around the loop, one per second. In a quick test, 10000 back-to-back 'service xapissl restart' calls completed without any taking more than a few seconds.

Signed-off-by: David Scott <63c9eb0ea83039690fefa11afe17873ba8278a56@eu.citrix.com>

jjd27/xen-api,huizh/xen-api,simonjbeaumont/xen-api,simonjbeaumont/xen-api,koushikcgit/xen-api,koushikcgit/xen-api,djs55/xen-api,anoobs/xen-api,ravippandey/xen-api,cheng--zhang/xen-api,koushikcgit/xen-api,cheng-z/xen-api,Frezzle/xen-api,cheng-z/xen-api,thomassa/xen-api,euanh/xen-api,rafalmiel/xen-api,thomassa/xen-api,huizh/xen-api,robertbreker/xen-api,euanh/xen-api,robertbreker/xen-api,srowe/xen-api,rafalmiel/xen-api,robertbreker/xen-api,srowe/xen-api,guard163/xen-api,cheng--zhang/xen-api,srowe/xen-api,djs55/xen-api,cheng-z/xen-api,simonjbeaumont/xen-api,thomassa/xen-api,koushikcgit/xen-api,djs55/xen-api,thomassa/xen-api,anoobs/xen-api,salvocambria/xen-api,simonjbeaumont/xen-api,robertbreker/xen-api,jjd27/xen-api,Frezzle/xen-api,anoobs/xen-api,huizh/xen-api,salvocambria/xen-api,guard163/xen-api,salvocambria/xen-api,cheng-z/xen-api,rafalmiel/xen-api,cheng--zhang/xen-api,salvocambria/xen-api,guard163/xen-api,Frezzle/xen-api,euanh/xen-api,ravippandey/xen-api,robertbreker/xen-api,ravippandey/xen-api,rafalmiel/xen-api,guard163/xen-api,cheng--zhang/xen-api,srowe/xen-api,vasilenkomike/xen-api,djs55/xen-api,salvocambria/xen-api,cheng--zhang/xen-api,Frezzle/xen-api,ravippandey/xen-api,thomassa/xen-api,cheng--zhang/xen-api,guard163/xen-api,robertbreker/xen-api,agimofcarmen/xen-api,koushikcgit/xen-api,vasilenkomike/xen-api,cheng--zhang/xen-api,salvocambria/xen-api,cheng-z/xen-api,euanh/xen-api,huizh/xen-api,djs55/xen-api,srowe/xen-api,jjd27/xen-api,euanh/xen-api,vasilenkomike/xen-api,euanh/xen-api,agimofcarmen/xen-api,anoobs/xen-api,vasilenkomike/xen-api,simonjbeaumont/xen-api,anoobs/xen-api,cheng-z/xen-api,huizh/xen-api,agimofcarmen/xen-api,guard163/xen-api,agimofcarmen/xen-api,Frezzle/xen-api,jjd27/xen-api,rafalmiel/xen-api,ravippandey/xen-api,huizh/xen-api,thomassa/xen-api,jjd27/xen-api,vasilenkomike/xen-api,jjd27/xen-api,simonjbeaumont/xen-api,djs55/xen-api,agimofcarmen/xen-api,ravippandey/xen-api,vasilenkomike/xen-api,cheng-z/xen-api,agimofcarmen/xen-api,anoobs/xen-api,rafalmiel/xen-api,koushikcgit/xen-api