From bebf2ff9b37e609d08775388fe95ddc031d2fef3 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Wed, 6 May 2015 14:19:42 -0300 Subject: Simplify logic --- config/squid3/34/squid.inc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'config/squid3') diff --git a/config/squid3/34/squid.inc b/config/squid3/34/squid.inc index d78aa27c..a6460af8 100755 --- a/config/squid3/34/squid.inc +++ b/config/squid3/34/squid.inc @@ -1959,11 +1959,9 @@ function squid_resync($via_rpc="no") { if (!is_service_running('squid')) { log_error("Starting Squid"); mwexec(SQUID_BASE . "/sbin/squid -f " . SQUID_CONFFILE); - } else { - if (!isset($boot_process)) { - log_error("Reloading Squid for configuration sync"); - mwexec(SQUID_BASE . "/sbin/squid -k reconfigure -f " . SQUID_CONFFILE); - } + } else if (!isset($boot_process)) { + log_error("Reloading Squid for configuration sync"); + mwexec(SQUID_BASE . "/sbin/squid -k reconfigure -f " . SQUID_CONFFILE); } // Sleep for a couple seconds to give squid a chance to fire up fully. -- cgit v1.2.3