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)
commit9fc789b9062818161890d165e0bc71621209404a
tree5cd2eeff08b4e78579075976a65f7ad5ba5696a1
parent268eca112d919c6e9cd03be74f4deb5a91a945bc
ovs-ctl: let openvswitch startup to NOT hold up system boot upon error

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