Add example launchd service for running OONI Probe automatically every hour
You should place the file inside of: `$HOME/Library/LaunchAgents` and then enable by running `launchctl load org.ooni.probe.cli.plist` It assumes you have a `ooniprobe` binary in `~/.ooniprobe/ooniprobe` and a special config file named `/Users/USERNAME/.ooniprobe/config-100sites.json` with a URL limit of 100 sites per run: ``` "nettests": { "websites_url_limit": 100 }, ```
This commit is contained in:
parent
6391e25154
commit
a9392f024a
34
scripts/org.ooni.probe.cli.plist
Normal file
34
scripts/org.ooni.probe.cli.plist
Normal file
|
@ -0,0 +1,34 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>Label</key>
|
||||
<string>org.ooni.probe.daily-run</string>
|
||||
|
||||
<key>KeepAlive</key>
|
||||
<false/>
|
||||
<key>RunAtLoad</key>
|
||||
<true/>
|
||||
|
||||
<key>Program</key>
|
||||
<string>/Users/USERNAME/.ooniprobe/ooniprobe</string>
|
||||
<key>ProgramArguments</key>
|
||||
<key>ProgramArguments</key>
|
||||
<array>
|
||||
<string>--config="/Users/USERNAME/.ooniprobe/config-100sites.json"</string>
|
||||
<string>--batch</string>
|
||||
<string>run</string>
|
||||
</array>
|
||||
|
||||
<key>StartInterval</key>
|
||||
<integer>3600</integer>
|
||||
|
||||
<key>StandardErrorPath</key>
|
||||
<string>/tmp/ooniprobe-cli.err</string>
|
||||
|
||||
<key>StandardOutPath</key>
|
||||
<string>/tmp/ooniprobe-cli.out</string>
|
||||
</dict>
|
||||
</plist>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user