Dear All
I previously posted the following:
On Fri, 6 Mar 1998 12:06:57 +0000 (GMT) Nick O'Brien <nick@cant.ac.uk>
wrote:
> I am trying to start Squid automatically from my system's startup scripts
> (I'm using Digital Unix 4.0B) but I having some some problems.
>
> I have written a short script to do this (see below), placed it in
> /sbin/init.d and created a soft link from my /sbin/rc3.d directory making
> sure it the last thing to be started. The script appears to be run on
> system startup (i.e I get the echos from the script), but when I check to
> see if Squid is running it isn't and there is nothing in the squid.out or
> cache.log to show that Squid even attempted to start. The script works
> fine when run from the command line
Thanks to all those who replied
The correct answer came from David Richards (dj.richards@qut.edu.au):
The top of the script in /sbin/init.d and /usr/local/squid/bin/RunCache
should be changed to read:
#!/bin/sh
trap '' 1 2 3 18
which traps the sigmals which are stopping Squid.
Also the line in RunCache which starts squid should be changed so that
squid is started by nohup:
nohup squid -sY $conf >> $logdir/squid.out 2>&1
Big, big thanks to David for his help. (Perhaps this is one for the FAQ???)
Rgds.,
Nick.
# Nick O'Brien, Computer Officer "It gives me a headache just to #
# Canterbury Christ Church College think down to your level", Marvin #
# Phone: +44 1227 782468 the Paranoid Android, HHGTTG #
# Email:nick@cant.ac.uk Web:http://www.cant.ac.uk/staff/nick/home.html #
Received on Wed Mar 11 1998 - 09:35:45 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:39:18 MST