diff options
author | doktornotor <notordoktor@gmail.com> | 2015-09-30 00:43:39 +0200 |
---|---|---|
committer | doktornotor <notordoktor@gmail.com> | 2015-09-30 00:43:39 +0200 |
commit | 349b9f6021d87128c88d4d186fc0f5b63d1dc1cd (patch) | |
tree | d9109ca0508dd57a8104835b760f77d7ff67918e /config/squid3/34 | |
parent | ced23a5782a29ded3358f331c24fbd81e7ebb422 (diff) | |
download | pfsense-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-x | config/squid3/34/squid.inc | 6 |
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(); |