ovs-ctl: let openvswitch startup to NOT hold up system boot upon error
authorSabyasachi Sengupta <Sabyasachi.Sengupta@alcatel-lucent.com>
Mon, 15 Jun 2015 21:57:53 +0000 (14:57 -0700)
committerBen Pfaff <blp@nicira.com>
Mon, 15 Jun 2015 22:00:21 +0000 (15:00 -0700)
Abort openvswitch startup script if ovsdb startup fails for
some reason. This helps in getting the system startup to NOT hang
indefinitely, as was seen in a recent report when ovsdb failed with
"I/O error: /etc/openvswitch/conf.db: failed to lock lockfile
(Resource temporarily unavailable)" and system remained in hung state
forever, unless manually rebooted from console.

Signed-off-by: Sabyasachi Sengupta <sabyasachi.sengupta@alcatel-lucent.com>
[blp@nicira.com changed an 'if' statement to '||']
Signed-off-by: Ben Pfaff <blp@nicira.com>
utilities/ovs-ctl.in

index 97716e9..99d789c 100755 (executable)
@@ -717,7 +717,7 @@ do
 done
 case $command in
     start)
-        start_ovsdb
+        start_ovsdb || exit 1
         start_forwarding
         add_managers
         ;;