<div dir="ltr">Hello Team,<div><br></div><div>We are working on a use-case, where the reboot / shutdown / poweroff of the system has to be blocked based on some X conditions.</div><div><br></div><div>These X conditions will get verified (may be by running scripts/service) instantly, when the reboot  / shutdown / poweroff command gets triggered.</div><div><br></div><div>Please, advise us on the above topic and provide pointers to any available implementation. </div><div><br></div><div><u><b>Note:</b></u></div><div>For the above use-case we won't be in a position to apply the<b> reboot-guard in advance</b>.</div><div><br></div><div>Best Regards,<br></div><div>Suresh</div></div>