2
0
mirror of https://github.com/openvswitch/ovs synced 2025-10-15 14:17:18 +00:00

debian: Don't fail ovs-controller restart if daemon not running.

Reported-by: Maxime Brun <m.brun@alphalink.fr>
Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
This commit is contained in:
Gurucharan Shetty
2013-05-28 17:18:12 -07:00
parent bbafd73beb
commit 64a1c30742
2 changed files with 6 additions and 3 deletions

View File

@@ -166,6 +166,7 @@ Krishna Miriyala krishna@nicira.com
Logan Rosen logatronico@gmail.com
Luca Falavigna dktrkranz@debian.org
Luiz Henrique Ozaki luiz.ozaki@gmail.com
Maxime Brun m.brun@alphalink.fr
Michael A. Collins mike.a.collins@ark-net.org
Michael Hu mhu@nicira.com
Michael Mao mmao@nicira.com

View File

@@ -242,9 +242,11 @@ case "$1" in
;;
restart|force-reload)
log_daemon_msg "Restarting $DESC" "$NAME"
stop_server
# Wait some sensible amount, some server need this
[ -n "$DODTIME" ] && sleep $DODTIME
if running; then
stop_server
# Wait some sensible amount, some server need this.
[ -n "$DODTIME" ] && sleep $DODTIME
fi
start_server
running
log_end_msg $?