aboutsummaryrefslogtreecommitdiffstats
path: root/config/squid3/34
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2015-09-30 00:43:39 +0200
committerdoktornotor <notordoktor@gmail.com>2015-09-30 00:43:39 +0200
commit349b9f6021d87128c88d4d186fc0f5b63d1dc1cd (patch)
treed9109ca0508dd57a8104835b760f77d7ff67918e /config/squid3/34
parentced23a5782a29ded3358f331c24fbd81e7ebb422 (diff)
downloadpfsense-packages-349b9f6021d87128c88d4d186fc0f5b63d1dc1cd.tar.gz
pfsense-packages-349b9f6021d87128c88d4d186fc0f5b63d1dc1cd.tar.bz2
pfsense-packages-349b9f6021d87128c88d4d186fc0f5b63d1dc1cd.zip
Only try to stop Squid if running to prevent useless logspam
Diffstat (limited to 'config/squid3/34')
-rwxr-xr-xconfig/squid3/34/squid.inc6
1 files changed, 4 insertions, 2 deletions
diff --git a/config/squid3/34/squid.inc b/config/squid3/34/squid.inc
index d017852f..a5b11204 100755
--- a/config/squid3/34/squid.inc
+++ b/config/squid3/34/squid.inc
@@ -1996,8 +1996,10 @@ function squid_resync($via_rpc = "no") {
log_error("Stopping any running proxy monitors");
mwexec("/usr/local/etc/rc.d/sqp_monitor.sh stop");
sleep(1);
- log_error("Stopping Squid");
- stop_service("squid");
+ if (is_service_running('squid')) {
+ log_error("Stopping Squid");
+ stop_service("squid");
+ }
}
filter_configure();