Re: init order

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

 



On Sat Feb 01 2003 at 00:06, Jesse Keating wrote:

> On Friday 31 January 2003 22:46, Tony Nugent uttered:
> > # for s in $(chkconfig --list | grep 3:on | cut -d\  -f1) ; do chkconfig
> > --level 5 $s on ; done
> >
> > Oh, on second thought, this might be needed first to ensure that anything
> > not set to start at runlevel 3 is also not started at runlevel 5...
> >
> > # for s in $(chkconfig --list | grep 3:off | cut -d\  -f1) ; do chkconfig
> > --level 5 $s off ; done
> 
> Most of these though won't alter what _order_ during that init phase they will
> start.  The user had a problem becuase one service tried to start before

What you quoted here (somewhat out of context) are only "extended"
*examples* of the sorts of useful things that you can do with
chkconfig.

> another was already running.  For that, not only do you have to set it to
> start at a certian run level, you have to set which ORDER it starts, and
> thats done by the preceding number to the service name in the rc#.d/
> directory.

Yes, I think we all understand that.  But you have missed the
point... /sbin/chkconfig just makes doing this a whole lot easier.

Simply edit the chkconfig start/stop order level settings in the
actual init script, then use chkconfig to envoke the changes.
Simple.

Cheers
Tony



-- 
Psyche-list mailing list
Psyche-list@redhat.com
https://listman.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux