[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Squid /etc/rc.d/init.d file



On Thu, 9 Jan 2003, Jeff Lasman wrote:

> Bruce Timberlake wrote:
>
> > Here's the one from the Qube... you'll probably have to change the
> > directories (it's in /home/squid2 on the Qube)...
>
> ...<actual file stripped>...
>
> I think what both of you have missed are the files that go in the
> various /etc/rc.d/rc?.d directories that control either starting or
> shutting down the service as the XTR starts, stops, and changes
> runlevels.
>
> They're just links, something like:
>
> S80squid if the service is going to start
>
> or
>
> K80squid if the service isn't.
>
> But it may just be easier to put some startup stuff into rc.local.
>
Yes, to get it registered for chkconfig this is a must

If you put in rc.local it will try to start always there may be
some modes in which you do not want it to start

Just put the startup script in /etc/rc.d/init.d
Then make your K or S links in each rc.xd file using ln -s
the symlink can be something like SA_squid symlinked to ../init.d/squid
Thsi will make it start last OR
KA_squid which will not start.

Gerald
--
http://frontstreetnetworks.com | http://store.raqware.com
Front Street Networks LLC      | Phone: +1 203 785-0699
229 Front Street, Ste. #C, New Haven, CT. 06513-3203