Init-scripts with same priority

Hello out there,
I want to know what happens, if two init-scripts have the same priority. For example, in /etc/rcS.d we have in lenny, amongst others, these two scripts:

S30checkfs.sh which points to /etc/init.d/checkfs.sh
&&
S30procps.sh which points to /etc/init.d/procps.sh

it doesn't matter where it points to, I just write it for information however...

But the point is, these two scripts have the same priority. And what if I want to write a script which should be executed between these two scripts?

Thank you

Gruss Christian

0

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Init-scripts with same

You will need to change the priorities of the scripts to ensure that they execute in order. If the scripts have the same priority then there is no guarantee which one is executed first - you might find that most systems seem to execute in alphabetic order, but this is not guaranteed and should not be relied upon.

Since you want to run a third script, you will need to use 3 priority levels.

Syndicate content