Re: [squid-users] Restarts without any apparent reason

From: Ralf Hildebrandt <Ralf.Hildebrandt_at_charite.de>
Date: Thu, 29 Jul 2010 16:49:44 +0200

* Amos Jeffries <squid3_at_treenet.co.nz>:

> >Where can I find the reason?
>
> Um. Maybe syslog or wherever the runit script 2>&1 sent it.

Nothing in the logs
 
> >Squid3 runs as the user "proxy":
> >
> >proxy 8888 38.9 5.2 126356 108980 ? S 15:02 1:26 /usr/sbin/squid3 -N
> >
> >The runit script is this:
> >
> >cd /etc/service/squid3
> >echo 128 > /proc/sys/kernel/msgmni
> >ulimit -n 4096 -c unlimited
> >exec 2>&1
> >exec /usr/sbin/squid3 -N
>
> Any particular reason why you are running as a runit daemon with
> no-daemon mode (-N) enabled?

I want it to restart, once it dies?

That's how runit/daemontools works: The program needs to stay in the foreground.
If it's gone, it has died and needs to be restarted

-- 
Ralf Hildebrandt
  Geschäftsbereich IT | Abteilung Netzwerk
  Charité - Universitätsmedizin Berlin
  Campus Benjamin Franklin
  Hindenburgdamm 30 | D-12203 Berlin
  Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962
  ralf.hildebrandt@charite.de | http://www.charite.de
	    
Received on Thu Jul 29 2010 - 14:49:54 MDT

This archive was generated by hypermail 2.2.0 : Thu Jul 29 2010 - 12:00:05 MDT