08.08.2017 17:03, Marek Floriańczyk пишет:
> What would be the proper way to distinguish between system is going down for
> reboot and for shutdown ?
Straightforward way is to make your service WantedBy poweroff.target and
halt.target. You can then have second service WantedBy reboot.target and
kexec.target. They may even call the same binary (script) but with
systemd-devel mailing list