X-Git-Url: https://review.fuel-infra.org/gitweb?p=openstack-build%2Fneutron-build.git;a=blobdiff_plain;f=rpm%2FSOURCES%2Fneutron-openvswitch-agent.init;h=d7481affcf33fef2f055c2346e288eff9cdb198e;hp=14e53a9cb4b233772c9a2ef930ac7daba4ac2b03;hb=423ca751f5d0d102af56e1601de9f9552b91a80e;hpb=a5c3300f72cd2762f2a9f3dd767aa812fe3e5ffe diff --git a/rpm/SOURCES/neutron-openvswitch-agent.init b/rpm/SOURCES/neutron-openvswitch-agent.init index 14e53a9cb..d7481affc 100644 --- a/rpm/SOURCES/neutron-openvswitch-agent.init +++ b/rpm/SOURCES/neutron-openvswitch-agent.init @@ -39,6 +39,11 @@ start() { stop() { echo -n $"Stopping $prog: " killproc -p $pidfile $prog + if pgrep $prog &>/dev/null ; then + sleep 2 + pgrep $prog &>/dev/null && \ + killall $prog + fi retval=$? echo [ $retval -eq 0 ] && rm -f $lockfile