X-Git-Url: https://review.fuel-infra.org/gitweb?p=openstack-build%2Fneutron-build.git;a=blobdiff_plain;f=rpm%2FSOURCES%2Fneutron-mlnx-agent.init;h=b5e514f37388cfb229df1714f5e95043b23454ac;hp=c19f33bfaaebebc2c3e7b0ae8cdad9e0b49c1c44;hb=423ca751f5d0d102af56e1601de9f9552b91a80e;hpb=a5c3300f72cd2762f2a9f3dd767aa812fe3e5ffe diff --git a/rpm/SOURCES/neutron-mlnx-agent.init b/rpm/SOURCES/neutron-mlnx-agent.init index c19f33bfa..b5e514f37 100644 --- a/rpm/SOURCES/neutron-mlnx-agent.init +++ b/rpm/SOURCES/neutron-mlnx-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