packages/net/privoxy/files/privoxy.init
luka 88df887bbc [packages] privoxy: move privoxy startup to later in boot process
When using privoxy as a transparent HTTP proxy a race condition occurs
where privoxy may attempt to startup and start listening on the LAN
interface before the network configuration is completed. As a result
privoxy fails to start up because it can't bind to the correct listening
address. This patch changes the init.d script to be a little bit later
in the boot process.

Signed-off-by: Adam Gensler <openwrt@kristenandadam.net>

git-svn-id: svn://svn.openwrt.org/openwrt/packages@32759 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-07-16 22:53:46 +00:00

17 lines
248 B
Bash

#!/bin/sh /etc/rc.common
# Copyright (C) 2006-2011 OpenWrt.org
START=80
STOP=80
SERVICE_USE_PID=1
start() {
service_start /usr/sbin/privoxy --pidfile /var/run/privoxy.pid \
/etc/privoxy/config
}
stop() {
service_stop /usr/sbin/privoxy
}