[NTLUG:Discuss] Start up services

sysmail@glade.net sysmail at glade.net
Mon Dec 17 17:16:58 CST 2001


Actually, chkconfig will help at least to some degree.

A comment like this in the /etc/rc.d/init.d/whateverscript controls the
levels the service should be started in, and the precedence for startup
and shutdown:

# chkconfig: 345 30 80

That means chkconfig should start the service in runlevels 3, 4, and 5,
and it should start at prioritiy 30, and terminate at priority 80.

Priority probably isn't a good term - the numbers indicate the order in
which things are started and stopped, not system priority.

I think chkconfig --reset will reset defaults - but I haven't verified
that.

Regards,

Carl

> program from the startup).  It doesn't look like it can rearrange the order
> within a run level.
>
> ------------------------------------------------------------------------
> Jim Wildman, CISSP                                      jim at rossberry.com
> 817-308-3868                                     http://www.rossberry.com
>
> On 16 Dec 2001, Patrick Parks wrote:
>
> > On Sun, 2001-12-16 at 21:48, Jim Wildman wrote:
> > > I believe you said this was a RH box.
> > >
> > > The start up order is determined by the canonical order of files in
> > > the various startup directories.  For instance, /etc/rc3.d on my box
> > > contains
> > >
> > > K03rhnsd
> > > K10webmin
> >
> >
> > Thanks, that is actually what I did, but I also had to do it in
> > /etc/rc5.d also so it would work in runlevel 5 I am guessing? Thanks
> > everyone for the help.
> >
> > Patrick Parks
> > www.patrickparks.com
> > patrick at patrickparks.com
> > (972) 416-8377 (Home)
> > (504) 723-6460 (PCS)
> > (972) 354-7712 (Fax)
> >
> >
>
>
> _______________________________________________
> http://www.ntlug.org/mailman/listinfo/discuss
>





More information about the Discuss mailing list