summaryrefslogtreecommitdiff
path: root/debian/openvswitch-switch.init
diff options
context:
space:
mode:
authorSimon Horman <horms@verge.net.au>2010-09-21 12:06:13 +0900
committerBen Pfaff <blp@nicira.com>2010-09-21 10:39:31 -0700
commitb9ddc6aaaea369faf7787b690de2ae56ffd08ad9 (patch)
treee8191f7b528cb8cde470014730aeb7ea46ddfae8 /debian/openvswitch-switch.init
parent2ed7d6e227c009f0f6bdabbb85262d8aac896e00 (diff)
downloadopenvswitch-b9ddc6aaaea369faf7787b690de2ae56ffd08ad9.tar.gz
debian: Dont fail init if module cant be inserted
The problem here is that the daemon is started/restarted on package installation, but the module may not be present at that time and (as far as I know) its bad form to fail the package installation in that circumstance. In keeping with the way ipvsadm handles a similar problem, exit with a non-error exit status if the module can't be inserted. The loud error message is still displayed. Signed-off-by: Simon Horman <horms@verge.net.au> Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'debian/openvswitch-switch.init')
-rwxr-xr-xdebian/openvswitch-switch.init2
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/openvswitch-switch.init b/debian/openvswitch-switch.init
index 34b5604dc..600c18564 100755
--- a/debian/openvswitch-switch.init
+++ b/debian/openvswitch-switch.init
@@ -157,7 +157,7 @@ load_module() {
echo "For instructions, read"
echo "/usr/share/doc/openvswitch-datapath-source/README.Debian"
fi
- exit 1
+ exit 0
fi
}