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

Simplify startup and dependencies #165

Merged
merged 3 commits into from
Mar 18, 2024
Merged

Conversation

wiedehopf
Copy link
Contributor

Currently there is a whole dependency forest just to start a couple of startup scripts in order.
Additionally all the services also have a dependency on all the startup scripts.
This is unnecessary complex, simplify it:

Move startup scripts to /etc/s6-overlay/startup.d
Create oneshot service named "startup" which executes all files in
/etc/s6-overlay/startup.d in alphabetical order
Remove various oneshot scripts from longrun service dependencies
Add "startup" oneshot service to longrun service dependencies

The oneshot service to start all scripts in /etc/s6-overlay/startup.d could be included in the baseimage after some testing and if that's something sdr-enthusiasts is interested in.
The script was tested against an empty or non-existent directory as well and just exits 0 in that case.
If one of started scripts exits with an error, it will announce it and propagate the error.
This preserves the behaviour of the container startup being aborted in that case.

Move startup scripts to /etc/s6-overlay/startup.d
Create oneshot service named "startup" which executes all files in
/etc/s6-overlay/startup.d in alphabetical order
Remove various oneshot scripts from longrun service dependencies
Add "startup" oneshot service to longrun service dependencies
@fredclausen fredclausen merged commit beff68b into sdr-enthusiasts:main Mar 18, 2024
11 checks passed
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

Successfully merging this pull request may close these issues.

2 participants