From a9392f024a4f52a796eeaf9cf82b97863450382f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arturo=20Filast=C3=B2?= Date: Tue, 28 Jan 2020 14:29:39 +0100 Subject: [PATCH] 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 }, ``` --- scripts/org.ooni.probe.cli.plist | 34 ++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 scripts/org.ooni.probe.cli.plist diff --git a/scripts/org.ooni.probe.cli.plist b/scripts/org.ooni.probe.cli.plist new file mode 100644 index 0000000..306c10b --- /dev/null +++ b/scripts/org.ooni.probe.cli.plist @@ -0,0 +1,34 @@ + + + + + Label + org.ooni.probe.daily-run + + KeepAlive + + RunAtLoad + + + Program + /Users/USERNAME/.ooniprobe/ooniprobe + ProgramArguments + ProgramArguments + + --config="/Users/USERNAME/.ooniprobe/config-100sites.json" + --batch + run + + + StartInterval + 3600 + + StandardErrorPath + /tmp/ooniprobe-cli.err + + StandardOutPath + /tmp/ooniprobe-cli.out + + + +