you could use the "local service" if you are not going to write your own one.
Add your scripts to the /etc/local.d/ and add the service to the desired run-level.
e.g.
rc-update add local default
More details can be found in the README in the same directory.
cat/etc/local.d/README
This directory should contain programs or scripts which are to be run
when the local service is started or stopped.
If a file in this directory is executable and it has a .start extension,
it will be run when the local service is started. If a file is
executable and it has a .stop extension, it will be run when the local
service is stopped.
All files are processed in lexical order.
Keep in mind that files in this directory are processed sequencially,
and the local service is not considered started or stopped until
everything is processed, so if you have a process which takes a long
time to run, it can delay your boot or shutdown processing.
Hi rpereyra,
you could use the "local service" if you are not going to write your own one.
Add your scripts to the
/etc/local.d/
and add the service to the desired run-level.e.g.
rc-update add local default
More details can be found in the README in the same directory.
Regards,
Roger Newman
That's a good method, thank you!
To manage the dependency related to others process
such as open a LUKS crypt before whatever else
https://wiki.gentoo.org/wiki/OpenRC#Dependency_behavior