From: Duffie Cooley Date: Tue, 1 Oct 2013 02:27:07 +0000 (-0700) Subject: rhel: fix the exit status of the openvswitch init script. X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=f2073881648f4a6abfe7d5d9561b030ce526b2a3;p=sliver-openvswitch.git rhel: fix the exit status of the openvswitch init script. This is a fix for a request to make sure that the openvswitch status command in rhel based distros gives a useful exit status. That was fixed in commit 5e0c05bc058c78a11be6747f62e6ad88e5d06b70 debian: Fix exit status of openvswitch-switch init script "status" command Signed-off-by: Duffie Cooley Signed-off-by: Ben Pfaff --- diff --git a/rhel/etc_init.d_openvswitch b/rhel/etc_init.d_openvswitch index 7e6413256..2878d397c 100755 --- a/rhel/etc_init.d_openvswitch +++ b/rhel/etc_init.d_openvswitch @@ -5,7 +5,7 @@ # chkconfig: 2345 09 91 # description: Manage Open vSwitch kernel modules and user-space daemons -# Copyright (C) 2009, 2010, 2011 Nicira, Inc. +# Copyright (C) 2009, 2010, 2011, 2013 Nicira, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -81,6 +81,7 @@ case $1 in ;; status) ovs_ctl status + exit $? ;; version) ovs_ctl version