should restart on failure on mac

这个提交包含在:
AJ ONeal 2018-06-09 11:26:30 -06:00
父节点 54e9977c47
当前提交 34cee2dbac
共有 2 个文件被更改,包括 7 次插入4 次删除

查看文件

@ -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;

查看文件

@ -32,12 +32,15 @@
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<dict>
<true/>
<!--dict>
<key>Crashed</key>
<true/>
<key>SuccessfulExit</key>
<key>NetworkState</key>
<true/>
</dict>
<key>SuccessfulExit</key>
<false/>
</dict-->
<key>SoftResourceLimits</key>
<dict>