Added patches init-scripts for kill services
[openstack-build/neutron-build.git] / rpm / SOURCES / neutron-l3-agent.init
index d07f5a4ee086fc923391f0dc799ad3c9ab3d6c53..b96b0f168a606f86f12b661595a7cabaac556a69 100644 (file)
@@ -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