telebit.js/usr/share/dist/Library/LaunchDaemons/cloud.telebit.remote.plist.tpl

62 lines
1.3 KiB
Smarty
Raw Normal View History

2018-06-24 00:50:13 +00:00
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>Telebit Remote</string>
<key>ProgramArguments</key>
<array>
2018-06-27 09:21:44 +00:00
<string>{TELEBIT_NODE}</string>
<string>{TELEBITD_JS}</string>
2018-06-24 00:50:13 +00:00
<string>daemon</string>
<string>--config</string>
2018-06-27 09:21:44 +00:00
<string>{TELEBITD_CONFIG}</string>
2018-06-24 00:50:13 +00:00
</array>
<key>EnvironmentVariables</key>
<dict>
<key>TELEBIT_PATH</key>
<string>{TELEBIT_PATH}</string>
<key>NODE_PATH</key>
<string>{NODE_PATH}</string>
2018-06-24 00:50:13 +00:00
<key>NPM_CONFIG_PREFIX</key>
<string>{NPM_CONFIG_PREFIX}</string>
2018-06-24 00:50:13 +00:00
</dict>
<key>UserName</key>
<string>{TELEBIT_USER}</string>
<key>GroupName</key>
<string>{TELEBIT_GROUP}</string>
<key>InitGroups</key>
<true/>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
<!--dict>
<key>Crashed</key>
<true/>
<key>NetworkState</key>
<true/>
<key>SuccessfulExit</key>
<false/>
</dict-->
<key>SoftResourceLimits</key>
<dict>
<key>NumberOfFiles</key>
<integer>8192</integer>
</dict>
<key>HardResourceLimits</key>
<dict/>
<key>WorkingDirectory</key>
2018-06-27 09:21:44 +00:00
<string>{TELEBIT_PATH}</string>
2018-06-24 00:50:13 +00:00
<key>StandardErrorPath</key>
<string>{TELEBIT_LOG_DIR}/error.log</string>
2018-06-24 00:50:13 +00:00
<key>StandardOutPath</key>
<string>{TELEBIT_LOG_DIR}/info.log</string>
2018-06-24 00:50:13 +00:00
</dict>
</plist>