Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] knowing when the boot is finished #685

Open
fariouche opened this issue Jan 5, 2024 · 1 comment
Open

[Feature Request] knowing when the boot is finished #685

fariouche opened this issue Jan 5, 2024 · 1 comment
Assignees

Comments

@fariouche
Copy link

Hello,

I'm currently building a home server (based on gentoo), and I want it to be available as fast as possible. However, some of the services it runs are slow to start but also not as important as some others (like samba)
Running in parallel mode is not an option, as they technically all start at the same time (they all only need the network as a dependency, so as soon as the network is ready, all the services are started, including the heavy ones)
The one that slows down everything in my case is homeassistant, and postgresql doing a lot of disk access (this is not a super powerfull server, but a fanless mini itx computer)

My current solution, less than ideal, is to only have the services I really need fast in the default runlevel, and everything else in local.d...

I've studied all the option offered by openrc, and I didn't see any option to avoid that. Stacked runlevel is almost perfect... except that in my case I need to run all the stacked (or a list of them) runlevels.

(Modifiying the inittab is also not a solution)

However, if I know when a runlevel finished its execution, I can then have a script to initiate the next stacked runlevel (keeping all the services runing of course)
This will essentially be similar to the init code that starts sysinit then boot then default runlevel in this order.

Did I miss something?

Hope it clear, if not let me know

Thank you!

@Forza-tng
Copy link
Contributor

You can use rc_after="*" in conf.d

@navi-desu navi-desu self-assigned this Sep 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants