keeping squid running.

From: Michael O'Reilly <michael@dont-contact.us>
Date: Tue, 01 Apr 1997 09:10:13 +0800

In message <199703311733.JAA24374@nlanr.net>, squid-users-digest-request@nlanr.
net writes:
> Date: Fri, 28 Mar 97 08:09:57 -0800
> From: Duane Wessels <wessels>
> To: squid-users@nlanr.net
> Subject: Re: startup squid program suggestion change
> Message-Id: <199703281609.IAA29014@nlanr.net>
>
> n8walker@bcdfghjklmnpqrstvwxyz.com writes:
>
> >
> >Is there another way to check to see if its "running" and if so,
> >any suggestions would be appreciated.
>
> For one, you can use a script like scripts/RunCache to restart
> Squid if it exits.
>
> Also, you can run 'squid -kc' to see if Squid is already running.
> It reads the squid.pid file and will tell you (via the exit status) if
> that processid is running. e.g.:
>
> bin/squid -kc || echo "Squid is not running"
>
> Duane W.

What we do is edit /etc/inittab and add
        P1:2345:respawn:/opt/squid/bin/squid

which does pretty much exactly what you want. As soon as squid exits,
init will re-spawn it.

Michael.
Received on Mon Mar 31 1997 - 17:34:42 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:34:47 MST