Ensure "service vswitch status" returns appropriate error code
authorIan Campbell <Ian.Campbell@citrix.com>
Wed, 14 Oct 2009 10:37:19 +0000 (11:37 +0100)
committerBen Pfaff <blp@nicira.com>
Wed, 14 Oct 2009 19:49:27 +0000 (12:49 -0700)
commitdde98f40a3ec6f1482383bd1d6bb3e439872806b
tree7be2d39f095b3dee54aaab7ca14f15b76bbb86d1
parentfd8b8de056a3deb484bcfabeba183bf1080a8546
Ensure "service vswitch status" returns appropriate error code

This command was returning success when vswitchd was not running.
Our automated test relies on this command to decide if the host uses
vswitch or not.

If vswitchd is not OK then brcompatd is not checked at all. Since the
return codes apparently have specific meanings I couldn't see a sensible
way to combine multiple failure results.
xenserver/etc_init.d_vswitch