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

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



Got it! Three steps: Make sure the file works (I needed to add my
/opt/bin and /opt/sbin to my path for the script to work ), add the
chkconfig line to the top of the file, and then run chkconfig
--add. It will use the line to determine the runlevels the first time
you add it with chkconfig.
 
On Thu, Jan 09, 2003 at 01:56:57PM -0500, Josh Kuperman wrote:
> On Thu, Jan 09, 2003 at 10:24:19AM -0800, 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)...
> 
> This is very similar to the one I took and modified. The main
> differences besides location due to my choice to put the programs in
> opt deal with changes in recent version of Squid which keeps track of
> its pid and doesn't generate as many sub processes as it used to. You
> can simply issue 'squid -k shutdown' and it will end the processes it
> started, at least in the current production version 2.5STABLE1.
>  
> > ...<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.
> 
> The /etc/rc.d/rc?.d are usually symlinks to /etc/rc.d/init.d/ where
> the ones beginning with K are called with "stop" as a parameter and
> the ones beginning with S are called with "start" as a parameter. All
> files are processed in alphabetical order as the machine runs through
> the startup scripts and reaches the correct run level.
> 
> I thought maybe chkconfig would autoconfigure things once I had enough
> in place.
> 
> > 
> > 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.
> > 
> > Jeff
> > -- 
> > Jeff Lasman, nobaloney.net, P. O. Box 52672, Riverside, CA  92517 US
> > Internet & Unix/Linux/Sun/Cobalt Consulting +1 909 778-9980
> > Our jblists address used on lists is for list email only
> > To contact us offlist: "http://www.nobaloney.net/contactus.html";
> > 
> > _____________________________________
> > cobalt-users mailing list
> > cobalt-users@xxxxxxxxxxxxxxx
> > To subscribe/unsubscribe, or to SEARCH THE ARCHIVES, go to:
> > http://list.cobalt.com/mailman/listinfo/cobalt-users
> 
> -- 
> Josh Kuperman                       
> josh@xxxxxxxxxxxxxxxxxx
> 
> _____________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To subscribe/unsubscribe, or to SEARCH THE ARCHIVES, go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users

-- 
Josh Kuperman                       
josh@xxxxxxxxxxxxxxxxxx