I want to reboot my linux machine 2 minutes after it boots. I have the following listed in my crontab -e. All of these commands create the log files. but only ifc.log and sleep.log contain any entry. Reboot doesnt happen. What am i missing? What needs to change?
Reason : i am building a NAS server, i need to figure out if the hardware config works perfectly on every boot. This is for dev and testing purposes.
@reboot root sleep 100; reboot >> /root/mylogs/cronrestart.log
@reboot root sleep 80; echo "cron sleep 80" >> /root/mylogs/sleep.log
@reboot sleep 60; ifconfig >> /root/mylogs/ifc.log
@reboot sleep 61; lsusb >> /root/mylogs/lsusb.log
@reboot sleep 110; shutdown -r now >> /root/mylogs/junk.log