debian: Dont fail init if module cant be inserted
authorSimon Horman <horms@verge.net.au>
Tue, 21 Sep 2010 03:06:13 +0000 (12:06 +0900)
committerBen Pfaff <blp@nicira.com>
Tue, 21 Sep 2010 17:39:31 +0000 (10:39 -0700)
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>
debian/openvswitch-switch.init

index 34b5604dc7bf0a154b364a8090e526ffe76cfef1..600c18564367454773d8bbc48e75211de8f953dc 100755 (executable)
@@ -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
 }