aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2013-02-05 10:30:30 -0500
committerjim-p <jimp@pfsense.org>2013-02-05 10:31:47 -0500
commit96531e3932f4b4d5577a9956f437e4933291d265 (patch)
tree7ca38b2cf52f642570f21df0652e3cd3f9f150a0 /config
parentc72ca6b9fa8c139fdf1abdc0c86193c14e78582a (diff)
downloadpfsense-packages-96531e3932f4b4d5577a9956f437e4933291d265.tar.gz
pfsense-packages-96531e3932f4b4d5577a9956f437e4933291d265.tar.bz2
pfsense-packages-96531e3932f4b4d5577a9956f437e4933291d265.zip
Write this during every sync to make sure it's present and not missed
Diffstat (limited to 'config')
-rw-r--r--config/squid/squid.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/config/squid/squid.inc b/config/squid/squid.inc
index e620ae61..bd0c8634 100644
--- a/config/squid/squid.inc
+++ b/config/squid/squid.inc
@@ -219,10 +219,6 @@ function squid_install_command() {
exec("chmod a+rx " . SQUID_LOCALBASE . "/libexec/squid/dnsserver");
if(file_exists("/usr/local/pkg/swapstate_check.php"))
exec("/bin/chmod a+x /usr/local/pkg/swapstate_check.php");
- write_rcfile(array(
- "file" => "sqp_monitor.sh",
- "start" => "/usr/local/pkg/sqpmon.sh &",
- "stop" => "ps awux | grep \"sqpmon\" | grep -v \"grep\" | grep -v \"php\" | awk '{ print $2 }' | xargs kill"));
foreach (array( SQUID_CONFBASE,
SQUID_ACLDIR,
@@ -1479,6 +1475,10 @@ if [ -z "`ps auxw | grep "[s]quid -D"|awk '{print $2}'`" ];then
EOD;
conf_mount_rw();
write_rcfile($rc);
+ write_rcfile(array(
+ "file" => "sqp_monitor.sh",
+ "start" => "/usr/local/pkg/sqpmon.sh &",
+ "stop" => "ps awux | grep \"sqpmon\" | grep -v \"grep\" | grep -v \"php\" | awk '{ print $2 }' | xargs kill"));
conf_mount_ro();
}
?>