X-Git-Url: https://review.fuel-infra.org/gitweb?p=openstack-build%2Fneutron-build.git;a=blobdiff_plain;f=rpm%2FSOURCES%2Fneutron-l3-agent.init;h=b96b0f168a606f86f12b661595a7cabaac556a69;hp=d07f5a4ee086fc923391f0dc799ad3c9ab3d6c53;hb=423ca751f5d0d102af56e1601de9f9552b91a80e;hpb=a5c3300f72cd2762f2a9f3dd767aa812fe3e5ffe diff --git a/rpm/SOURCES/neutron-l3-agent.init b/rpm/SOURCES/neutron-l3-agent.init index d07f5a4ee..b96b0f168 100644 --- a/rpm/SOURCES/neutron-l3-agent.init +++ b/rpm/SOURCES/neutron-l3-agent.init @@ -40,6 +40,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