What is important to us is that our shut down is reliable: if a service misbehaves, we find ways to handle that, if then the kernel misbehaves, then we will try to do the next best thing -- which is proceeding with the next shutdown step...
Also note that immediately before turning off the power, systemd will do a "killing spree" loop, where it will try to kill possibly remaining processes, unmount remaining file systems, detach remaining DM, turn off remaining swaps, detach remaining loops, over and over again in a tight loop until duringe one iteration it couldn't do anything anymore. This is the extra safety net, so that we shutdown everything that wasn't shut down by the normal transaction logic. i.e. all that stuff where people turned of SIGKILL, for some reason misconfigured dependencies and similar cases.
Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds