[PLUG] Working Web proxie quit upon reboot -- SOLVED

Rich Shepard rshepard at appl-ecosys.com
Mon Jan 24 22:54:18 UTC 2005


On Mon, 24 Jan 2005, Rich Shepard wrote:

> It may be a problem with a lockfile, or maybe something is just broken in
> the script.  Perhaps one of the paths defined is not correct, or has
> changed.

Rich, et al.:

   I tracked down the problem, and it is subtle. I'll document it here for
archive archeologists when they come up with the same situation.

SUMMARY: The initial configuration was done from the privoxy Web site, and
that's where it was configured and started. That process never made a local
copy of the config file. Privoxy will not start without a config file.

   Spelunking through /opt/privoxy/doc/text/user-manual.txt I learned that
the executable (/usr/local/sbin/privoxy) wants to find the config file in
/etc/privoxy/. That directory was not created during the installation and
tweaking process. Neither was the file in it.

   So, I created /etc/privoxy/ and created config. The user-manual.txt has
the requirements; confdir and logdir are mandatory, all else is optional.
Here's my config:

confdir		/etc/privoxy
logdir		/var/log/privoxy
actionsfile	standard
actionsfile	default
actionsfile	user
filterfile	default.filter
logfile		logfile
jarfile		jarfile
trustfile 
debug		8192
listen-address	127.0.0.1:8118
toggle		1

   Now, the application also wants to look at the action files. They're in
the directory where it was installed (/usr/local/etc/privoxy). So I made
softlinks from /etc/privoxy to /usr/local/etc/privoxy -- including the
template/ directory.

   Then I ran '/usr/local/sbin/privoxy /etc/privoxy/config' and it worked.
Oh, you need to turn on the proxy in your browser before firing it up.

   I don't know if I need to export the $PRIVOX_xxx environment variables for
the Slackware rc.privoxy script. Guess I'll find out when I next need to
reboot this box.

Excelsior! (Not the packing version.)

Rich

-- 
Dr. Richard B. Shepard, President
Applied Ecosystem Services, Inc. (TM)
<http://www.appl-ecosys.com>   Voice: 503-667-4517   Fax: 503-667-8863



More information about the PLUG mailing list