Changing Fedora's shutdown timeouts
Changing Fedora's shutdown timeouts
Posted Jan 19, 2023 13:02 UTC (Thu) by kleptog (subscriber, #1183)In reply to: Changing Fedora's shutdown timeouts by NYKevin
Parent article: Changing Fedora's shutdown timeouts
When I see this issue it's mainly caused by container-like constructions where the parent process in the "container" gains PID1 signal protections. Namely, a PID1 process may not be killed by a default signal handler. Since most processes don't install a signal handler for SIGKILL, such processes become immune to SIGKILL. Of course, many programs don't install a SIGTERM handler either, but that's somewhat more common.
This is the reason many container guides suggest using something like systemd, supervisord, dumb-init, tini, etc as the root process because those *do* install a SIGKILL handler which properly exits. The symptom is pretty clear: killing your container takes ages.
Of course, if SIGKILL fails, the entire cgroup gets nuked eventually, and there's no immunity from that.
