Privoxy
I have Privoxy running nicely on my Pi having followed the excellent LifeHacker article. However, when starting up the Pi afresh, or after rebooting, the Privoxy service does not restart and I have to SSH in to do so manually. Can some kind soul suggest a way to remedy that, please?
Re: Privoxy
What i would do, as an easy solution, is install
run it as root and check if privoxy is listed in the second runlevel (second row). If not enable it.
If that doesn't work i would try
I think in the past one had to enable it by editing /etc/bootlogd
Now i can't find said file, man page doesn't say how to do it, so i would use sysv-rc-conf.
Reboot and read the log /var/log/boot
Code: Select all
apt-get install sysv-rc-config
If that doesn't work i would try
Code: Select all
apt-get install bootlogd
Now i can't find said file, man page doesn't say how to do it, so i would use sysv-rc-conf.
Reboot and read the log /var/log/boot
Re: Privoxy
Hi Nadir
Thanks for your reply. There's no package for sysv-rc-config so tired bootlogd. The logs shows no sign of Privoxy.
Not sure where we go from here?
Thanks for your reply. There's no package for sysv-rc-config so tired bootlogd. The logs shows no sign of Privoxy.
Not sure where we go from here?
Re: Privoxy
Edit: Duh. My fault. Package name is:
You can ignore the rest if that is the problem (i assume that).
I am a bit puzzled that sysv-rc-conf can't be installed. Perhaps double check that (I use it on my raspian and debian images on raspberry).
sysv-rc-conf is just a frontend, and easy to use. I know there are manual ways to do it, but i don't know them as i always use sysv-rc-conf.
A quick search for " Debian how to enable services" or "raspberry how to enable service gave some results, for example this:
http://www.raspberrypi.org/phpBB3/viewt ... 31&t=23491
But i would rather wait for someone who knows for sure
(You could check what you find in
ls -l /etc/rc2.d
and
ls -l /etc/init.d
in the meantime, perhaps piping the output to grep
ls -l /etc/rc2.d | grep privoxy
)
You probably know this, but this shouldn't be necessary. Usually you install it and it get's added automatically.
Code: Select all
sysv-rc-conf
I am a bit puzzled that sysv-rc-conf can't be installed. Perhaps double check that (I use it on my raspian and debian images on raspberry).
sysv-rc-conf is just a frontend, and easy to use. I know there are manual ways to do it, but i don't know them as i always use sysv-rc-conf.
A quick search for " Debian how to enable services" or "raspberry how to enable service gave some results, for example this:
http://www.raspberrypi.org/phpBB3/viewt ... 31&t=23491
But i would rather wait for someone who knows for sure
(You could check what you find in
ls -l /etc/rc2.d
and
ls -l /etc/init.d
in the meantime, perhaps piping the output to grep
ls -l /etc/rc2.d | grep privoxy
)
You probably know this, but this shouldn't be necessary. Usually you install it and it get's added automatically.
Re: Privoxy
Hi
I now have sysv-rc-conf running now, thanks. It shows Privoxy running as a level 2 service but I still have to start Privoxy over Putty/SSH by typing or I don't understand why that's necessary.
.
I now have sysv-rc-conf running now, thanks. It shows Privoxy running as a level 2 service but I still have to start Privoxy over Putty/SSH by typing
Code: Select all
service privoxy start
Code: Select all
/etc/init.d/privoxy start
.
Re: Privoxy
Apparently privoxy is not started through the runlevels.
Since you can run
all that needs to be done is adding privoxy to the runlevel.
For that you need update-rc.d.
See
--
wq
Since you can run
Code: Select all
# service privoxy start
For that you need update-rc.d.
See
Code: Select all
man update-rc.d
wq
Re: Privoxy
I have tried adding Privoxy by updating but it still doesn't run at start up. Very strange. Could it be anything to do with user permissions?
Code: Select all
update-rc.d.
Re: Privoxy
I have found the problem, though not the solution.
Looking at the Privoxy log in var/log/privoxy there is a fatal error at boot time;
Looking at the Privoxy log in var/log/privoxy there is a fatal error at boot time;
I am running a VPN at that address which Privoxy cannot bind to. Any suggestions how to resolve this?Fatal error: can't bind to 10.0.0.5:8118: Cannot assign requested address
Re: Privoxy
Make sure the interface is up when privoxy starts (but you knew thattalkeasy wrote:I have found the problem, though not the solution.
Looking at the Privoxy log in var/log/privoxy there is a fatal error at boot time;
I am running a VPN at that address which Privoxy cannot bind to. Any suggestions how to resolve this?Fatal error: can't bind to 10.0.0.5:8118: Cannot assign requested address

you can check the runlevel the system is running by entering:
Code: Select all
# runlevel
(most likely it's at runlevel 2)
Have a look at
Code: Select all
ls -l /etc/rc2.d/
update-rc.d will help you get the order right.
good luck!
--
:wq
Re: Privoxy
Hi Tsusan
Yes, you're right. Privoxy is starting before the VPN (Neorouter). However, I cannot change the order. When I type to change from 17, for example, it just changes back to 17 when I type
What am I missing? Thanks.
Yes, you're right. Privoxy is starting before the VPN (Neorouter). However, I cannot change the order. When I type
Code: Select all
update-rc.d -f privoxy defaults start 44
Code: Select all
ls -l /etc/rc?.d/*privoxy
Re: Privoxy
Remove privoxy first (it won't remove the script /etc/init.d/privoxy)talkeasy wrote:<snip>When I typeto change from 17, for example, it just changes back to 17 when I typeCode: Select all
update-rc.d -f privoxy defaults start 44
Code: Select all
ls -l /etc/rc?.d/*privoxy
Code: Select all
# update-rc.d -f privoxy remove
Code: Select all
# update-rc.d privoxy defaults 44 56
--
:wq
Re: Privoxy
I am able to remove the service by typing
But when i add privoxy back with a higher start number, such as
when I run
it returns to the default values of
How can I get privoxy to start at a higher order number?
Code: Select all
# update-rc.d -f privoxy remove
Code: Select all
update-rc.d -f privoxy defaults 25
Code: Select all
ls -l /etc/rc2.d/
Code: Select all
lrwxrwxrwx 1 root root 17 May 1 18:23 S01privoxy -> ../init.d/privoxy
Re: Privoxy
thats not what it said in my example.Code: Select all
update-rc.d -f privoxy defaults 25
What are the results when you follow the example precisely?
--
:wq
Re: Privoxy
I did try exactly as suggested, but posted the code incorrectly. Nevertheless I have tried again, but it still places Privoxy back at 17, not the new values. Could it be a permissions issue perhaps?
Thanks.
Code: Select all
lrwxrwxrwx 1 root root 17 May 2 18:57 S01privoxy -> ../init.d/privoxy
Thanks.
Re: Privoxy
In the absence of a solution of how to successfully lower the boot order of the Privixy service to after Neorouter I devised a very British bodge job - yes cron jobs to the rescue.
In crontab I added
This runs a cron job after a reboot (or cold boot) but first delays restarting the Privoxy service by 60 seconds to allow the other services to settle down. If anyone can find a way of moving Privoxy down the services load order that would be a preferable solution - so please still let me know.
In crontab I added
Code: Select all
@reboot sleep 60 && /etc/init.d/privoxy restart
Re: Privoxy
Well, yes.
That is a solution.
I have done a bit of learning, no longer being able to rely on knowledge gained before, and found this:
http://wiki.debian.org/LSBInitScripts/D ... yBasedBoot
In Short:
And add neorouter as a prerequisite for privoxy
That is a solution.
I have done a bit of learning, no longer being able to rely on knowledge gained before, and found this:
http://wiki.debian.org/LSBInitScripts/D ... yBasedBoot
In Short:
Code: Select all
sudo vi /etc/init.d/privoxy