On Saturday, May 20, 2006 @ 4:41 PM, Peter Van Lone wrote:
On 5/20/06, Greg Wallace
wrote:
So, for example, does Default-Start 3 5 say to start it in runlevels 3 and 5?
yes, that -- when you have that in the init section, and then run chconfig/runlevel editor, it creates (via innserv I think) the K and S links to the script in the rc3.d and rc5.d directories.
And as far as predecessors, would you not set that up by adding a line into .depend.start (and .depend.stop for the kills)?
From what I have seen so far in the docs (I'm only partway through it all) it appears as though the .depend.start and .depend.stop files are modified automagically again, as a result of reading the init section "required start/stop and should start/stop" of all the scripts in /etc/init.d
Peter
In init.d scripts I looked at, Required-Start, Required-Stop, etc. are all commented, but maybe they are still read when you use the run level editor to set them up. Then again, maybe you leave them uncommented when you set up the script and then, when you add them via the run level editor, it comments them out as part of its setup process? Greg Wallace