start a program at boot, before any other service

If I want to start a program at boot time, before any service are started, in which file I should put it?

rc.local is started at the end, which is started as first ?
 
and what should I put in the my custom rc file to ensure that it will be the first in the list of rcorder ?

Code:
# PROVIDE: xx
# REQUIRE: xx
# KEYWORD: xx

only these lines influence boot order?
what to write, to be the first to run?

Tomorrow I'll study manual pages
 
See also service -e — prints enabled rc scripts in order.

And you’ll likely want something like


# AFTER: FILESYSTEMS
# BEFORE: NETWORKING
 
Hacking /etc/rc is the only way to be absolutely sure. Look for both calls to rcorder, after that insert your script in the start of the list. Then nothing can override your script and your script totally ignores the positioning directives.
 
Back
Top