Make filename lines in proposals match actual filenames. Accept 135.
[tor.git] / contrib / polipo / Polipo
blob14589c84db0835224f44424e490d5e3ed795354d
1 #!/bin/sh
3 ##
4 # Polipo
5 ##
7 . /etc/rc.common
9 StartService ()
11 if [ -f /Library/Polipo/bin/polipo ]; then
12 if pid=$(GetPID polipo); then
13 return 0
14 else if [ "${POLIPO:=-NO-}" = "-YES-" ]; then
15 ConsoleMessage "Starting Polipo"
16 /Library/Polipo/bin/polipo -c /Library/Polipo/www/config
22 StopService ()
24 if pid=$(GetPID polipo); then
25 ConsoleMessage "Stopping Polipo"
26 kill -TERM "${pid}"
27 else
28 ConsoleMessage "Polipo not responding."
29 # Just for sanity (sometimes necessary.)
30 killall tor 2>/dev/null
34 RestartService ()
36 StopService
37 StartService
40 RunService "$1"