From: Justin Pettit <jpettit@nicira.com>
Date: Tue, 28 Sep 2010 01:48:25 +0000 (-0700)
Subject: debian: Restart ovs-monitor-ipsec when --monitor specified
X-Git-Tag: v1.1.0~1067
X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=55f8a832c181a047f06f57125a2c0da9c235e030;p=sliver-openvswitch.git

debian: Restart ovs-monitor-ipsec when --monitor specified

The OVS Python daemon library will restart a process when started with
"--monitor" that exits with RESTART_EXIT_CODE.  Have ovs-monitor-ipsec
exit with this code when an uncaught exception occurs.
---

diff --git a/debian/ovs-monitor-ipsec b/debian/ovs-monitor-ipsec
index 1caece3a9..184b00469 100755
--- a/debian/ovs-monitor-ipsec
+++ b/debian/ovs-monitor-ipsec
@@ -347,3 +347,4 @@ if __name__ == '__main__':
         raise
     except:
         s_log.exception("traceback")
+        sys.exit(ovs.daemon.RESTART_EXIT_CODE)