aboutsummaryrefslogtreecommitdiff
path: root/files/polipo.cron
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2012-06-08 17:37:05 +0200
committerintrigeri <intrigeri@boum.org>2012-06-08 17:37:05 +0200
commit85471074070083d089365d10bc3978eabc606c28 (patch)
tree125be940dd60b77deccf9481bed155188eb28ce6 /files/polipo.cron
parentc59fe7465bedc1157ee9e314938fdc10c4158cf5 (diff)
downloadpuppet-tor-85471074070083d089365d10bc3978eabc606c28.tar.gz
puppet-tor-85471074070083d089365d10bc3978eabc606c28.tar.bz2
Move Polipo configuration files to a dedicated directory.
Diffstat (limited to 'files/polipo.cron')
-rwxr-xr-xfiles/polipo.cron22
1 files changed, 0 insertions, 22 deletions
diff --git a/files/polipo.cron b/files/polipo.cron
deleted file mode 100755
index aba88bc..0000000
--- a/files/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")