From 34cee2dbac8fa4114dbf52a6ee2838c7bf97b597 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sat, 9 Jun 2018 11:26:30 -0600 Subject: [PATCH] should restart on failure on mac --- bin/telebit.js | 2 +- .../Library/LaunchDaemons/cloud.telebit.remote.plist | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/bin/telebit.js b/bin/telebit.js index 2511214..41eb35e 100755 --- a/bin/telebit.js +++ b/bin/telebit.js @@ -237,7 +237,7 @@ require('fs').readFile(confpath, 'utf8', function (err, text) { // TODO closeAll other things process.nextTick(function () { // system daemon will restart the process - process.exit(); + process.exit(22); // use non-success exit code }); }); return; diff --git a/usr/share/dist/Library/LaunchDaemons/cloud.telebit.remote.plist b/usr/share/dist/Library/LaunchDaemons/cloud.telebit.remote.plist index 98725fb..d8cf4fe 100644 --- a/usr/share/dist/Library/LaunchDaemons/cloud.telebit.remote.plist +++ b/usr/share/dist/Library/LaunchDaemons/cloud.telebit.remote.plist @@ -32,12 +32,15 @@ RunAtLoad KeepAlive - + + SoftResourceLimits