
I'm trying to modify the power-related service files that come with systemd (for example, systemd-reboot.service) so that they run another command before bringing down the system. I want this command to have access to the name of the user that triggered the power event. Is this possible through a...