Re: running from inittab

From: Nigel Metheringham <>
Date: Mon, 06 Jan 1997 14:27:17 +0000 said:
} We've had no problems, except when we want to shut the cache down, and
} Unix is determined to restart it :-)

This is my solution to this problem...

This runs on a Linux system (Red Hat distribution - Sys V init), with
squid started from inittab, but with an enable/disable script run from the
normal startup stuff.

The is run by init, and is adapted from an example Duane Wessels
passed to me long ago. It loops in a sleep if the config file cannot be
found or a disable flag file is present. Otherwise it exec's squid using
Wietse's chrootuid to set the UID (I don't chroot it - I just prefer
chrootuid over su for launching code).

The squid.init is run from the rc3.d startup stuff in standard Sys V ways.
 On shutdown it signals squid having set the flag file to prevent it
restarting. This allows the cache to be shutdown and kept down by running
the script.

This is written for a specific setup - you may wish to change things a
fair bit for your configuration.


[ - Unix Applications Engineer ]
[ *Views expressed here are personal and not supported by PLAnet* ]
[ PLAnet Online : The White House Tel : +44 113 251 6012 ]
[ Melbourne Street, Leeds LS2 7PS UK. Fax : +44 113 2345656 ]
[Q: You know when you run sendmail.... A: No, you DELETE sendmail]

Received on Mon Jan 06 1997 - 06:49:35 MST

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