Tiny Core Base > TCB Talk

Startup script execution order?

(1/2) > >>

bmarkus:
What is the actual startup script execution order? Are these executed in alphabetic order one by one when all extensions loaded or parallel? Is there a difference in 2.5 and 2.6?

^thehatsrule^:
iirc, they are in alphabetical order, and are executed one-by-one as part of each extension's loading

bmarkus:

--- Quote from: ^thehatsrule^ on November 18, 2009, 11:14:00 PM ---iirc, they are in alphabetical order, and are executed one-by-one as part of each extension's loading

--- End quote ---

Are you saying script is executed immediately after the extension is loaded and not after all extensions loaded?

^thehatsrule^:
Yes

Jason W:
Actually, it has been recently changed to where during boot if an extension has a startup script, that startup script name is echoed to a file and the order of extensions is loaded alphabetically, but with dependencies loaded first if a dep file exists for the extension.  At the end of boot, the name of the startup scripts exist in the file in the order that the extensions were loaded.  Then at the end of boot after depmod and ldconfig are run, the startup scripts are executed from that list.

In other words, if dbus has expat listed as a dependency, then expat gets loaded and it's startup script is run before dbus's both during boot as well as with appbrowser use.

Navigation

[0] Message Index

[#] Next page

Go to full version