Skip to content

Conversation

@valpackett
Copy link
Contributor

Some init systems like systemd absolutely need to run as PID 1. Add an environment variable to allow doing so at the cost of the exit code feature.


Yes, this is kinda in the direction of "not-so-micro" VMs, but we wanted to try a tiny minimal systemd setup for our own project where we need to run user-configurable background services (like VPN clients) for desktop apps. #223 mentions the systemd-in-a-container use case for k8s stuff. So hopefully this would be acceptable? (after polishing it a bit more: I guess it should be configurable from the JSON file as well..)

@mtjhrc
Copy link
Collaborator

mtjhrc commented Oct 10, 2025

So hopefully this would be acceptable?

Yes definitely. In fact I have also ran into this limitation and I was already thinking we should implement a mechanism like this eventually. Thanks for working on it!

@valpackett valpackett marked this pull request as ready for review October 17, 2025 03:17
Some init systems like systemd absolutely need to run as PID 1.
Add an environment variable to allow doing so at the cost of the return
code feature.

Signed-off-by: Val Packett <val@invisiblethingslab.com>
Copy link
Collaborator

@slp slp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@slp slp merged commit bbaa604 into containers:main Oct 21, 2025
8 checks passed
@valpackett valpackett deleted the val/pqqnnpowvoqt branch October 22, 2025 02:08
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.

3 participants