X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=debian%2Fopenvswitch-controller.init;h=44d2c873de5ac29455360cbd2b559e9100f3ec47;hb=19c8e9c11bcd441a42ababb8439bc7b24e9e435c;hp=cfcd0a3f818334e814afa12d9ccb86e5ea225d71;hpb=1db6b18507b06c9b866168dc9e01fd15180c37eb;p=sliver-openvswitch.git diff --git a/debian/openvswitch-controller.init b/debian/openvswitch-controller.init index cfcd0a3f8..44d2c873d 100755 --- a/debian/openvswitch-controller.init +++ b/debian/openvswitch-controller.init @@ -1,6 +1,6 @@ #!/bin/sh # -# Copyright (c) 2011 Nicira Networks Inc. +# Copyright (c) 2011 Nicira, Inc. # Copyright (c) 2007, 2009 Javier Fernandez-Sanguino # # This is free software; you may redistribute it and/or modify @@ -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 $?