Hard code pid path

This commit is contained in:
Fred 2024-05-02 14:30:03 +00:00
parent 14160ad2d4
commit 2fa9599095

View File

@ -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