From: Ben Pfaff Date: Wed, 29 Feb 2012 00:31:45 +0000 (-0800) Subject: debian: Fix exit status of openvswitch-switch init script "status" command. X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;ds=sidebyside;h=e6b690365649d5c143f10e5e4929bc5bc959333e;p=sliver-openvswitch.git debian: Fix exit status of openvswitch-switch init script "status" command. The init script ends with an explicit "exit 0" so nonzero exit codes from "ovs-ctl status" were being lost. Bug #9714. Reported-by: Paul Ingram CC: Sujatha Shetty Signed-off-by: Ben Pfaff --- diff --git a/debian/openvswitch-switch.init b/debian/openvswitch-switch.init index 6f08c3fab..cb9670cbb 100755 --- a/debian/openvswitch-switch.init +++ b/debian/openvswitch-switch.init @@ -1,6 +1,6 @@ #! /bin/sh # -# Copyright (C) 2011 Nicira Networks, Inc. +# Copyright (C) 2011, 2012 Nicira Networks, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -86,6 +86,7 @@ case $1 in ;; status) ovs_ctl status + exit $? ;; force-reload-kmod) start force-reload-kmod