Re: Squid on Bootup

From: Rodney Holm <>
Date: Fri, 07 Aug 1998 11:46:39 -0600

Ronneil Camara wrote:
> I'm new to squid. How do I make Squid run upon bootup? Coz, when i try
> to place
> /usr/local/squid/bin/squid -D on my /etc/rc.d/rc.local, I don't get a
> login prompt.
> So, I'll press ctrl-c to close squid, then I get the login prompt.
> I would appreciate any help.
> Onie

There are a number of options, one way is to use the RunCache script that comes
with the Squid distribution.

I use the following script, this requires that your cache directories are
already created. You could call this script from your rc.local script. Try
running it by hand first.

# Start or stop squid daemon


case "$1" in
                start-stop-daemon --start --verbose --exec
/usr/local/squid/bin/squid -- ${OPTS} &
                start-stop-daemon --stop --verbose --exec
                echo "Usage: /etc/init.d/squid {start|stop}"
                exit 1

exit 0

Rodney D. Holm        
Apexx Technology, Inc.
Received on Fri Aug 07 1998 - 10:49:24 MDT

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