diff options
Diffstat (limited to 'config')
-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(); |