Am 01.09.19 um 14:49 schrieb Mathias G: > Thanks for the code snipped. I tried to put the script to > /usr/lib/systemd/system-shutdown/ > > but it was not executed at all. > > I remembered that I tried to create some debug info by myself and I had > to put the script to: > /lib/systemd/system-shutdown/ > instead to make it working. No idea why, the execute bit was set beause you obvisouly have a very old distribution where /lib is still not a symlink to /usr/lib https://www.freedesktop.org/wiki/Software/systemd/TheCaseForTheUsrMerge/