From 6137b1c0a8127250e77a0ebfcd82f28aeff2f04b Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sun, 24 Jun 2018 01:17:36 -0600 Subject: [PATCH] add unprivileged LaunchAgent --- .../cloud.telebit.remote.plist.tpl | 70 +++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 usr/share/dist/etc/skel/Library/LaunchAgents/cloud.telebit.remote.plist.tpl diff --git a/usr/share/dist/etc/skel/Library/LaunchAgents/cloud.telebit.remote.plist.tpl b/usr/share/dist/etc/skel/Library/LaunchAgents/cloud.telebit.remote.plist.tpl new file mode 100644 index 0000000..37f1072 --- /dev/null +++ b/usr/share/dist/etc/skel/Library/LaunchAgents/cloud.telebit.remote.plist.tpl @@ -0,0 +1,70 @@ + + + + + Label + Telebit Remote + + ProgramArguments + + {TELEBIT_PATH}/bin/node + {TELEBIT_PATH}/bin/telebitd.js + daemon + --config + {TELEBIT_CONFIG_PATH} + + + EnvironmentVariables + + TELEBIT_PATH + {TELEBIT_PATH} + NODE_PATH + {TELEBIT_PATH}/lib/node_modules + NPM_CONFIG_PREFIX + {TELEBIT_PATH} + + + + + RunAtLoad + + KeepAlive + + + + + + WorkingDirectory + {TELEBIT_PATH} + + StandardErrorPath + {TELEBIT_PATH}/var/log/error.log + StandardOutPath + {TELEBIT_PATH}/var/log/info.log + +