Reported-by: Maxime Brun <[email protected]>
Signed-off-by: Gurucharan Shetty <[email protected]>
---
 AUTHORS                            |    1 +
 debian/openvswitch-controller.init |    8 +++++---
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/AUTHORS b/AUTHORS
index 498e9f0..d15173e 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -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]
diff --git a/debian/openvswitch-controller.init 
b/debian/openvswitch-controller.init
index b073dde..44d2c87 100755
--- a/debian/openvswitch-controller.init
+++ b/debian/openvswitch-controller.init
@@ -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 $?
-- 
1.7.9.5

_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev

Reply via email to