[ovs-dev] [PATCH 2/2] debian: Restart ovs-monitor-ipsec when --monitor specified

Justin Pettit jpettit at nicira.com
Tue Sep 28 01:56:50 UTC 2010


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.
---
 debian/ovs-monitor-ipsec |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/debian/ovs-monitor-ipsec b/debian/ovs-monitor-ipsec
index 1caece3..184b004 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)
-- 
1.7.1





More information about the dev mailing list