Skip to content

Commit

Permalink
debian: Don't fail ovs-controller restart if daemon not running.
Browse files Browse the repository at this point in the history
Reported-by: Maxime Brun <[email protected]>
Signed-off-by: Gurucharan Shetty <[email protected]>
  • Loading branch information
shettyg committed May 29, 2013
1 parent bbafd73 commit 64a1c30
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ Krishna Miriyala [email protected]
Logan Rosen [email protected]
Luca Falavigna [email protected]
Luiz Henrique Ozaki [email protected]
Maxime Brun [email protected]
Michael A. Collins [email protected]
Michael Hu [email protected]
Michael Mao [email protected]
Expand Down
8 changes: 5 additions & 3 deletions debian/openvswitch-controller.init
Original file line number Diff line number Diff line change
Expand Up @@ -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 $?
Expand Down

0 comments on commit 64a1c30

Please sign in to comment.