diff options
author | Alin Năstac <mrness@gentoo.org> | 2007-06-17 07:44:18 +0000 |
---|---|---|
committer | Alin Năstac <mrness@gentoo.org> | 2007-06-17 07:44:18 +0000 |
commit | cf57bfe1d4d0fad1e89b4076fe085cdc770ee508 (patch) | |
tree | 660ad884f4454fe81e2f29eba2a18b12232859fb /net-proxy/polipo | |
parent | Changed debug=full to debug=1 as scons expects an integer value. Marked stabl... (diff) | |
download | gentoo-2-cf57bfe1d4d0fad1e89b4076fe085cdc770ee508.tar.gz gentoo-2-cf57bfe1d4d0fad1e89b4076fe085cdc770ee508.tar.bz2 gentoo-2-cf57bfe1d4d0fad1e89b4076fe085cdc770ee508.zip |
Verify that the service is running before purging old objects from cache.
(Portage version: 2.1.2.7)
Diffstat (limited to 'net-proxy/polipo')
-rw-r--r-- | net-proxy/polipo/ChangeLog | 5 | ||||
-rw-r--r-- | net-proxy/polipo/files/polipo.crond | 12 |
2 files changed, 11 insertions, 6 deletions
diff --git a/net-proxy/polipo/ChangeLog b/net-proxy/polipo/ChangeLog index fb8cfbc8a8f7..f004baab7397 100644 --- a/net-proxy/polipo/ChangeLog +++ b/net-proxy/polipo/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for net-proxy/polipo # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-proxy/polipo/ChangeLog,v 1.17 2007/06/17 07:00:10 mrness Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-proxy/polipo/ChangeLog,v 1.18 2007/06/17 07:44:18 mrness Exp $ + + 17 Jun 2007; Alin Năstac <mrness@gentoo.org> files/polipo.crond: + Verify that the service is running before purging old objects from cache. *polipo-1.0.0 (17 Jun 2007) diff --git a/net-proxy/polipo/files/polipo.crond b/net-proxy/polipo/files/polipo.crond index 23bb9d137079..2bda2cc0f1a0 100644 --- a/net-proxy/polipo/files/polipo.crond +++ b/net-proxy/polipo/files/polipo.crond @@ -1,7 +1,9 @@ #!/bin/sh -#Expire old cached objects -kill -USR1 $(cat /var/run/polipo.pid) -sleep 1 -nice -n 15 su -s "/bin/sh" -c "polipo -x" polipo > /dev/null -kill -USR2 $(cat /var/run/polipo.pid) +if /etc/init.d/polipo --quiet status; then + #Expire old cached objects + kill -USR1 $(cat /var/run/polipo.pid) + sleep 1 + nice -n 15 su -s "/bin/sh" -c "polipo -x" polipo > /dev/null + kill -USR2 $(cat /var/run/polipo.pid) +fi |