From 349b9f6021d87128c88d4d186fc0f5b63d1dc1cd Mon Sep 17 00:00:00 2001 From: doktornotor Date: Wed, 30 Sep 2015 00:43:39 +0200 Subject: Only try to stop Squid if running to prevent useless logspam --- config/squid3/34/squid.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'config') 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(); -- cgit v1.2.3