summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-proxy/polipo/files/polipo.crond')
-rw-r--r--net-proxy/polipo/files/polipo.crond7
1 files changed, 5 insertions, 2 deletions
diff --git a/net-proxy/polipo/files/polipo.crond b/net-proxy/polipo/files/polipo.crond
index 2df79b180432..c7667a392d90 100644
--- a/net-proxy/polipo/files/polipo.crond
+++ b/net-proxy/polipo/files/polipo.crond
@@ -1,4 +1,7 @@
-#!/bin/bash
+#!/bin/sh
#Expire old cached objects
-nice -n 15 su -s /bin/sh -c 'polipo -x' polipo
+kill -USR1 $(cat /var/run/polipo.pid)
+sleep 1
+nice -n 15 su -s "/bin/sh" -c "polipo -x" polipo
+kill -USR2 $(cat /var/run/polipo.pid)