Skip to content

Commit 87e3727

Browse files
authored
launchd.plist loading and starting
1 parent 5029dfa commit 87e3727

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,18 @@ sudo rsync -a ./adblock2privoxy* /usr/local/etc/adblock2privoxy
4646
PATH=/usr/bin:$PATH sudo -E bash -c 'export STACK_ROOT=/usr/local/etc/.stack ; cd /usr/local/etc/adblock2privoxy/adblock2privoxy && stack setup --allow-different-user && stack install --local-bin-path /usr/local/bin --allow-different-user'
4747
```
4848

49+
## macOS launchd.plist daemons
50+
51+
macOS launchd.plist daemons to start `nginx` and update the `privoxy` database on a schedule. See [macOS-Fortress](../../../macOS-Fortress) for a working example.
52+
53+
```
54+
sudo install -m 644 ./com.github.essandess.adblock2privoxy.plist /Library/LaunchDaemons
55+
sudo install -m 644 ./com.github.essandess.adblock2privoxy.nginx.plist /Library/LaunchDaemons
56+
sudo launchctl load -w /Library/LaunchDaemons/com.github.essandess.adblock2privoxy.plist
57+
sudo launchctl load -w /Library/LaunchDaemons/com.github.essandess.adblock2privoxy.nginx.plist
58+
sudo launchctl start com.github.essandess.adblock2privoxy
59+
```
60+
4961
## Objectives
5062
AdBlock Plus browser plugin has great block lists provided by big community, but it is client software and cannot work on a server as a proxy.
5163

0 commit comments

Comments
 (0)