And it’s not as easy to add actually. Note that systemd only keeps
units loaded as long as they are referenced by something else that is
loaded, are running, have failed, or have a job queued. That means if
a service is terminated at shutdown there’s a very good chance it is
GC’ed away pretty quickly. Now, while systemd keeps timestamping info
around for services that tell us how long a service was running, took
to start or took to shut down all that info is lost the instant the
unit is GC’ed away…
Is there a way to do this for shutdown? It’d be great to debug shutdown hangs.
No, there currently isn’t
Source