From fb1a95a418f4654e199627557cc22044052b183f Mon Sep 17 00:00:00 2001 From: 007hacky007 <007hacky007@users.noreply.github.com> Date: Tue, 14 Apr 2026 15:58:51 +0200 Subject: [PATCH] refactor: use service helpers for squid lifecycle --- ct/squid.sh | 2 +- install/squid-install.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ct/squid.sh b/ct/squid.sh index 8ab803ec..5a0eeb69 100644 --- a/ct/squid.sh +++ b/ct/squid.sh @@ -34,7 +34,7 @@ function update_script() { $STD squid -k parse msg_ok "Validated Squid Configuration" msg_info "Restarting Squid" - systemctl restart squid + safe_service_restart "squid" msg_ok "Restarted Squid" msg_ok "Updated ${APP}" msg_ok "Updated successfully!" diff --git a/install/squid-install.sh b/install/squid-install.sh index cb0e3998..a92528c3 100644 --- a/install/squid-install.sh +++ b/install/squid-install.sh @@ -80,7 +80,7 @@ $STD squid -k parse msg_ok "Validated Squid Configuration" msg_info "Starting Service" -systemctl enable -q --now squid +enable_and_start_service "squid" msg_ok "Started Service" motd_ssh