5 # Purpose : A startupitem launch/relaunch/terminate script
7 # Copyright : Written by and Copyright (C) 2001-2012 the
8 # Privoxy team. http://www.privoxy.org/
10 # This program is free software; you can redistribute it
11 # and/or modify it under the terms of the GNU General
12 # Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at
14 # your option) any later version.
16 # This program is distributed in the hope that it will
17 # be useful, but WITHOUT ANY WARRANTY; without even the
18 # implied warranty of MERCHANTABILITY or FITNESS FOR A
19 # PARTICULAR PURPOSE. See the GNU General Public
20 # License for more details.
22 # The GNU General Public License should be included with
23 # this file. If not, you can view it at
24 # http://www.gnu.org/copyleft/gpl.html
25 # or write to the Free Software Foundation, Inc.,
26 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
29 # Modification : If you modify this file please consider whether your
30 # changes ought to be passed back to the macsetup module.
35 PRIVOXY_PATH=/usr/local/sbin
36 PRIVOXY_PIDFILE=/var/run/privoxy.pid
38 PRIVOXY_CONFIG=/usr/local/etc/privoxy/config
42 if [ -x ${PRIVOXY_PATH}/privoxy ]; then
43 if ! pid=$(GetPID privoxy); then
44 echo "Starting privacy enhancing proxy"
46 ${PRIVOXY_PATH}/privoxy --pidfile ${PRIVOXY_PIDFILE} --user ${PRIVOXY_USER} ${PRIVOXY_CONFIG} 2>&1
53 if pid=$(GetPID privoxy); then
54 echo "Stopping privacy enhancing proxy"
57 echo "privoxy is not running."
63 if pid=$(GetPID privoxy); then
64 echo "Restarting privacy enhancing proxy"