debian: Restart ovs-monitor-ipsec when --monitor specified
authorJustin Pettit <jpettit@nicira.com>
Tue, 28 Sep 2010 01:48:25 +0000 (18:48 -0700)
committerJustin Pettit <jpettit@nicira.com>
Tue, 28 Sep 2010 01:48:25 +0000 (18:48 -0700)
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

index 1caece3..184b004 100755 (executable)
@@ -347,3 +347,4 @@ if __name__ == '__main__':
         raise
     except:
         s_log.exception("traceback")
+        sys.exit(ovs.daemon.RESTART_EXIT_CODE)