How to know that PVE is shutting down

Lada

Active Member
Oct 23, 2019
13
0
41
45
Hello,

I would like to know if there is a method via api or cli on a node to know if it is shutting down.
On some of my nodes PVE takes more than a minute to complete a shutdown so I would to know it to avoid launching some of my bash for no reason.

Thank you.