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 1caece3a91f4881caa9bafea677c0adac212e67a..184b00469a1d1df9eda1c8ee07385258666b9463 100755 (executable)
@@ -347,3 +347,4 @@ if __name__ == '__main__':
         raise
     except:
         s_log.exception("traceback")
+        sys.exit(ovs.daemon.RESTART_EXIT_CODE)