Re: [squid-users] Re: squid not starting on reboot

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Thu, 19 May 2011 14:16:38 +1200

 On Thu, 19 May 2011 11:44:48 +1000, Troy Piggins wrote:
> * Amos Jeffries wrote :
>> On Wed, 18 May 2011 12:18:10 +1000, Troy Piggins wrote:
>> >I've been having trouble with my server rebooting lately, and
>> trying
>> >to get to the bottom of that issue.
>> >
>> >But what I'm noticing a lot is that squid is not starting
>> >automatically on the reboot. The system is Ubuntu Lucid, not
>> >compiled from source. Default runlevel is 2, and squid starting
>> >script is both in /etc/init.d and sym linked in /etc/rc2.d/S20squid
>> >
>> >Anyone think of a reason why it won't start? In my very primitive
>> >bash knowledge, I wrote a script into /etc/rc.local that I thought
>> >would test if it's running, wait and loop until it does start. But
>> >even that's not working and the mails aren't getting sent. Doubt
>> >this problem is related, could be an error in the script but when I
>> >test it manually it seems to work as intended.
>> >
>> > #!/bin/sh -e
>> >
>> > ps ax | grep squid | grep -v grep
>> > while [ $? -ne 0 ]; do
>> > mail -s "squid not started" root < /dev/null
>> > service squid start
>> > sleep 60
>> > ps ax | grep squid | grep -v grep
>> > done
>> >
>> >Any ideas?
>>
>> https://bugs.launchpad.net/ubuntu/lucid/+source/squid/+bug/561779
>>
>> Upgrade to the package from Maverick.
>
> Thanks mate. Quick reply appreciated. I've actually upgraded to
> squid3 instead of 2 with a view to getting clamav incorporated as
> well. Not decided on dansguardian vs squidclamav vs squidguard yet,
> but noticed that version 3 might be betting in that regard.
>
> Will see if the problem persists next reboot.

 oops, too fast :(. I was supposed to say Natty package. mis-read the
 "fixed" post on the bug report.

 The core change should just be the upstart script though, if you find
 the squid version itself has any unwanted problems.

 Amos
Received on Thu May 19 2011 - 02:16:42 MDT

This archive was generated by hypermail 2.2.0 : Thu May 19 2011 - 12:00:02 MDT