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

Add option to not kill process group on process exit #413

Open
troglobit opened this issue Sep 25, 2024 · 0 comments
Open

Add option to not kill process group on process exit #413

troglobit opened this issue Sep 25, 2024 · 0 comments

Comments

@troglobit
Copy link
Owner

troglobit commented Sep 25, 2024

While working with avahi-autoipd we found that the deconf step did not execute properly when Finit sent the daemon process SIGTERM. This was caused by Finit cleaning up all lingering processes in that process group when the daemon PID exited, causing the /etc/avahi/avahi-autoipd.action script to be killed (-9) before completing.

In systemd land this can be controlled by the KillMode= switch, which default to cgroup:

service [2345] stop-type:mixed foo -n -- Example foo daemon

A Finit feature for this should at least support: pgroup (current), cgroup, and mixed style.

Related to: #412

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant