From 2fa959909529972da5c13be87f23aea5c0061b83 Mon Sep 17 00:00:00 2001 From: Fred Date: Thu, 2 May 2024 14:30:03 +0000 Subject: [PATCH] Hard code pid path --- squid/run.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/squid/run.sh b/squid/run.sh index 247375a..446c439 100644 --- a/squid/run.sh +++ b/squid/run.sh @@ -1,8 +1,8 @@ #!/bin/bash -if [ -e "/squid/squid.pid" ];then +if [ -e "/run/squid.pid" ];then echo "Squid pid: Already running ?" - rm /squid/squid.pid + rm /run/squid.pid pkill squid exit 1 fi @@ -17,7 +17,7 @@ else touch "/var/spool/squid/$HOSTNAME" fi -while test -e /tmp/$HOSTNAME.pid +while test -e /run/squid.pid do echo "cache is generated/checked" sleep 1