docker-systemctl-replacement icon indicating copy to clipboard operation
docker-systemctl-replacement copied to clipboard

provide exitcode from some service when running systemctl-default

Open gdraheim opened this issue 7 years ago • 1 comments

To close the gap to normal docker-containers there is already an implementation of #28 to print service logs to the console log of PID 1. That helps to inspect the "system status" using "docker logs ".

Similarly, a user may want to check an exitcode of a docker container but so foar the init-replacement will always succeed. The problem is to define which exitcode should be removed the list of underlying services in a system.

The case of actually determining an early exit, when no-more-procs or no-more-active-services, has been already discussed in #27 ... however the exitcode may also be provided when doing a "systemctl --init default" from the command line.

gdraheim avatar Aug 30 '18 17:08 gdraheim

Actually, all processes for the services are going to be detached even when running systemctl.py as PID-1. It is probably not easy to get the exit code from a detached process - on the other hand, it is not easy to rebuild systemctl.py to not detach its children when running as PID-1.

As I don't quite see a benefit from the exitcode I'd like to put this as wontfix.

gdraheim avatar Sep 02 '18 14:09 gdraheim