Re: Squid on Bootup

From: Rodney Holm <rodneyh@dont-contact.us>
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.
> mailto:rcamara@cnl.net
> 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.

#!/bin/sh
#
# Start or stop squid daemon
#

OPTS='-D'

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

exit 0

-- 
-------------------------------------------------------------------------------
Rodney D. Holm                  rodneyh@apexxtech.com
Apexx Technology, Inc.          http://www.apexxtech.com
-------------------------------------------------------------------------------
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