The only way I know how to change the order of execution is by hand tweeking it. I would go to the /etc/init.d/rc5.d and rename the link say from S18.xdm to S10.xdm. This will then execute before all startup scripts lexically S10. Note that the capital S is essential otherwise it will not execute/ James Knott wrote:
Theo v. Werkhoven wrote:
Tue, 14 Jun 2005, by robin1.listas@tiscali.es:
The Monday 2005-06-13 at 18:41 -0300, Thiago Vinhas de Moraes wrote:
Does anyone knows how to change the order of the runlevel scripts? I have a particular init script that I would like to be executed before all other scripts??
I tried with yast and chkconfig, but it didn't work.
The order is calculated from the "Required-Start:" and "Required-Stop:" lines in the scripts. You will have to play with them till chkconfig insert it in the wanted order.
Or, put it in "boot.local", if possible, because, as James said, it is run before any of the runlevel scripts.
Caution: that'll only work for services that do /not/ need network.
I no longer have the original message, but I believe the OP wanted something to start before networking.
-- Joseph Loo jloo@acm.org