I am on Ubuntu 14.04 (using Digital Ocean) trying run a script as root. It's a script to check if a server is running and restart if it has crashed.
The issue isn't the script, but crontab won't run the script.
sudo crontab -e
#!/bin/bash
SHELL=/bin/bash
* * * * * /bin/bash /root/launch.sh
#newline
-rwxr-xr-x 1 root root 845 Nov 23 06:21 launch.sh
Not sure what I'm doing incorrectly, other posts about crontabs have shown similar answers to this one.
root
'scrontab
is different.