I have ubuntu system and I want to check the condition before the system goes off means system get shutdown. If condition is satisfied then allow to shutdown the system
otherwise halt the shutdown event. If any command is there on ubuntu then please tell me.
So please advice me