I would like to shutdown my system and boot it again after X seconds. Is there any command or service I can use to perform such task?
The purpose: I perform the shutdown when I have the suspect that the power supply is going to be unplugged, so, if it is the case the system will stay off (of course because there is no power) otherwise the system will start again.