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