[systemd-devel] Is there a way to know inside of systemd if it's in a reboot state?

Tia, Javier javier.tia at hpe.com
Mon Apr 19 20:19:50 UTC 2021


Hi,

Is there a way to know inside of systemd if it's in a reboot state?

Something like the Linux kernel does [1], keeping the system state in a 
variable.

[1] 
https://elixir.bootlin.com/linux/v4.19.98/source/include/linux/kernel.h#L581

▷ Javier's 🖊


More information about the systemd-devel mailing list