Discussion Locked

Squid Fails to Autorestart Following Power Outage

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Please let me apologize if this question has been asked previously. I have searched previous entries and haven't found any solutions.

My problem is as follows:

Installed with FreeBSD, Kernel 5.4 STABLE, Squid 2.5 STABLE9, ipf, ipnat. Server hardware (BIOS) capable of restart following the restoration of power after power failure.

When the server reboots following a power failure the Squid service fails to load automatically. The server restarts no problem and all other services (e.g. SSH) appear to work properly.

When I manually log on the server and 'reboot' the Squid service will then function properly following the restart.

Can you please advise why this is happening and how to correct. Many thanks in advance!

2 replies

by jaqui

previous discussions?
or previous TQ&A entries?
[ this being posted in the discussions section ]

by webbd1

I have the following script run every 15 min through cron:
squidpid=`cat /var/squid/logs/squid.pid`
squidline=`ps -p $squidpid|wc -l`
echo "Squid Pid is $squidpid"
echo "Process count is $squidline"
if [ $squidline -le 1 ]; then echo "Squid is not running";/usr/local/sbin/squid;
fi

This discussion is closed to new replies.