-----Original Message-----
From: Peter Albrecht [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 25, 2004 7:37 AM
To: [EMAIL PROTECTED]
Subject: Re: [squid-users] squid -2.5 stable5 automatic boot


Hi,

On Friday 25 June 2004 12:54, Elsen Marc wrote:
> 
> > 
> > Salam,
> > 
> >        i installed the squid2.5 stable5 on redhat linux 9 its
> > running fine
> > bur i want to run it aoutomatic when my system boot and i want to
> > instal its serviecs help me
> > 
> > Thnx.
> > 
>   Put a line to start squid in :
> 
>          /etc/rc.d/rc.local
> 
>  E.g :
> 
>   /path/too/squid_binary/squid
> 
>  M.

the better way would be using a startup script for this. I don't know the 
exact location in RH 9, but should be something like /etc/rc.d/init.d/squid
. 
I guess there is a script which you can use as a template (or copy the
script 
for squid which is provided on the RH CDs). For details, have a look in the 
man pages of chkconfig or insserv. If you use such a script, you can easily 
start, stop, and check the status of squid.

Regards,

Peter

-- 
Peter Albrecht, SUSE LINUX AG, [EMAIL PROTECTED]


~~~~~~~~~~
~~~~~~~~~~

My first install of squid was with yast on SUSE. That came with a start,
reload, and stop scripts. The Suse version didn't have everything enabled I
needed, so I compiled what I needed, and lost the scripts. Webmin also has
start, restart, and stop scripts. I haven't had time to track down either of
the set of scripts, and right now I'm running squid with "squid -N -d1" so
it's easy enough to ctrl-C to stop it, but we are still in the testing/setup
stage for our installation of squid. Depending how lazy/busy things are, I'd
either find and use the script to restart squid if there was a conf change,
use webmin to reload it, or just kill squid and restart it.

Chris Perreault

Reply via email to