aboutsummaryrefslogtreecommitdiff
path: root/files
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2014-08-30 16:37:58 +0200
committermh <mh@immerda.ch>2014-08-30 16:37:58 +0200
commit19a44ce97f59633002d844e2b37f2b26b2f1cfbc (patch)
tree5613a76af8c008a5820e41c097ed94f231412956 /files
parentbf6ff32f063cf70b69a61fc35ee840e2f9b34119 (diff)
downloadpuppet-tor-19a44ce97f59633002d844e2b37f2b26b2f1cfbc.tar.gz
puppet-tor-19a44ce97f59633002d844e2b37f2b26b2f1cfbc.tar.bz2
bug is fixed
Diffstat (limited to 'files')
-rwxr-xr-xfiles/polipo/polipo.cron22
1 files changed, 0 insertions, 22 deletions
diff --git a/files/polipo/polipo.cron b/files/polipo/polipo.cron
deleted file mode 100755
index aba88bc..0000000
--- a/files/polipo/polipo.cron
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/bin/sh
-set -e
-
-FORBIDDEN_FILE=/etc/polipo/forbidden
-CONFIG_FILE=/etc/polipo/config
-
-if [ ! -x /usr/bin/polipo ]; then
- exit 0
-fi
-
-if [ ! -f $FORBIDDEN_FILE ]; then
- FORBIDDEN_FILE=/dev/null
-fi
-
-PIDFILE=/var/run/polipo/polipo.pid
-[ -f "$PIDFILE" ] && kill -USR1 $(cat "$PIDFILE")
-# TODO: remove redirect stderr to /dev/null after the following bug is solved:
-# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=580434
-su -c \
- "nice polipo -x -c $CONFIG_FILE forbiddenFile=$FORBIDDEN_FILE > /dev/null" \
- proxy &> /dev/null
-[ -f "$PIDFILE" ] && kill -USR2 $(cat "$PIDFILE")