tag 510284 + patch
stop

Package: polipo
Version: 1.0.4-1.1
Followup-For: Bug #510284

Seconded.

polipo-control once controlled proxyOffline config option too.  That has been 
removed; thanks.

A third config option that polipo-control does not need to control is 
"forbiddenFile" which has an identical default and also belongs in 
/etc/polipo/config file.

Please:
- drop LOGFILE from polipo-control
- drop FORBIDDEN_FILE from polipo-control
- add to config:
  logFile = /var/log/polipo/polipo.log

Patch for polipo-control attached.
--- a/polipo-control	2010-05-13 14:41:41.000000000 -0500
+++ b/polipo-control	2010-05-13 14:43:11.000000000 -0500
@@ -8,23 +8,13 @@
 test -x $DAEMON || exit 0
 
 CONFIG_FILE=/etc/polipo/config
-FORBIDDEN_FILE=/etc/polipo/forbidden
 
 NAME=polipo
 
 PIDFILE=/var/run/$NAME/$NAME.pid
-LOGFILE=/var/log/$NAME/$NAME.log
 USER=proxy
 GROUP=proxy
-DAEMON_OPTS="-c $CONFIG_FILE pidFile=$PIDFILE daemonise=true logFile=$LOGFILE"
-
-forbiddenFile() {
-        if [ -f $FORBIDDEN_FILE ] || [ -d $FORBIDDEN_FILE ]; then
-                echo -n $FORBIDDEN_FILE
-        else
-                echo -n /dev/null
-        fi
-}
+DAEMON_OPTS="-c $CONFIG_FILE pidFile=$PIDFILE daemonise=true"
 
 waitForPIDRemove() {
         T=30
@@ -63,14 +53,12 @@
 	fi
 }
 
-DAEMON_OPTS="$DAEMON_OPTS forbiddenFile=`forbiddenFile`"
-
 polipo_start() {
 
 	if alreadyRunning; then
 		echo "$DAEMON already running -- doing nothing"
 		exit
-	fi	
+	fi
 
 	removePIDFile
 

Attachment: signature.asc
Description: Digital signature

Reply via email to