Need to cancel a scheduled shutdown

I'm very new to ubuntu. I am trying to cancel a shutdown I accidently put using the command echo "0 3 * * * root /sbin/shutdown -h 5 'system will reboot in 5 minutes'" | sudo tee /etc/cron.d/reboot-at-3am How can I stop this from shutting down. I wanted it to reboot at 3am but it is just shutting down and not restarting.

4

1 Answer

Just run

shutdown -c

to cancel the pending shutdown and correct your command

3

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like