X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;f=utilities%2Fovs-lib.in;h=773efb32c089776b01dba4fbec1a9a43912cafe8;hb=9b5422a98f817b9f2a1f8224cab7e1a8d0bbba1f;hp=dd8a1e931686c21d0ac503d0e9be3ffddc074240;hpb=1d7b2eceaeb059e42c1e1cd3d32c192e2ab22271;p=cascardo%2Fovs.git diff --git a/utilities/ovs-lib.in b/utilities/ovs-lib.in index dd8a1e931..773efb32c 100644 --- a/utilities/ovs-lib.in +++ b/utilities/ovs-lib.in @@ -202,11 +202,18 @@ start_daemon () { stop_daemon () { if test -e "$rundir/$1.pid"; then if pid=`cat "$rundir/$1.pid"`; then - for action in TERM .1 .25 .65 1 1 1 1 KILL 1 1 1 2 10 15 30 FAIL; do + for action in EXIT .1 .25 .65 1 \ + TERM .1 .25 .65 1 1 1 1 \ + KILL 1 1 1 2 10 15 30 \ + FAIL; do if pid_exists "$pid" >/dev/null 2>&1; then :; else return 0 fi case $action in + EXIT) + action "Exiting $1 ($pid)" \ + ${bindir}/ovs-appctl -T 1 -t $rundir/$1.$pid.ctl exit + ;; TERM) action "Killing $1 ($pid)" kill $pid ;;