OffGridSchedula / deploy /launchd /com.offgrid.collector.plist
ParetoOptimal's picture
Initial Commit
0366d65
Raw
History Blame Contribute Delete
1.29 kB
<?xml version="1.0" encoding="UTF-8"?>
<!-- Collector: polls ~/Library/Messages/chat.db and POSTs new messages to the
local backend's /ingest. NEEDS Full Disk Access for the program below
(System Settings > Privacy & Security > Full Disk Access -> add the python
binary __PYTHON__). Template — see scripts/setup_mac.sh. -->
<!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>com.offgrid.collector</string>
<key>ProgramArguments</key>
<array>
<string>__PYTHON__</string>
<string>__REPO__/collector/collector.py</string>
</array>
<key>WorkingDirectory</key><string>__REPO__/collector</string>
<key>EnvironmentVariables</key>
<dict>
<key>SPACE_URL</key><string>http://127.0.0.1:7860</string>
<key>INGEST_TOKEN</key><string>__INGEST_TOKEN__</string>
<key>POLL_SECONDS</key><string>20</string>
<key>CHAT_DB</key><string>__HOME__/Library/Messages/chat.db</string>
</dict>
<key>RunAtLoad</key><true/>
<key>KeepAlive</key><true/>
<key>StandardOutPath</key><string>__HOME__/Library/Logs/offgrid-collector.log</string>
<key>StandardErrorPath</key><string>__HOME__/Library/Logs/offgrid-collector.log</string>
</dict>
</plist>