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 #!/bin/bash
if [ -e "/squid/squid.pid" ];then if [ -e "/run/squid.pid" ];then
echo "Squid pid: Already running ?" echo "Squid pid: Already running ?"
rm /squid/squid.pid rm /run/squid.pid
pkill squid pkill squid
exit 1 exit 1
fi fi
@ -17,7 +17,7 @@ else
touch "/var/spool/squid/$HOSTNAME" touch "/var/spool/squid/$HOSTNAME"
fi fi
while test -e /tmp/$HOSTNAME.pid while test -e /run/squid.pid
do do
echo "cache is generated/checked" echo "cache is generated/checked"
sleep 1 sleep 1