Created
May 23, 2012 21:03
-
-
Save dstroot/2777821 to your computer and use it in GitHub Desktop.
install forever reboot script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "*****************************************" | |
echo " Download the script and add to crontab " | |
echo "*****************************************" | |
sudo wget https://raw.github.com/gist/2777778/e92dc28e3f3961e0e2740d262b3ed884a11f6f85/reboot.sh | |
sudo chmod 777 reboot.sh | |
sudo line="@reboot ~/reboot.sh >> cron.log 2>&1" | |
sudo (crontab -l; echo "$line" ) | crontab - | |
sudo checkconfg crond on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment