Hard code pid path
This commit is contained in:
parent
14160ad2d4
commit
2fa9599095
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user