Auto Restart and Linux Logs
Tutorial explaining how to create a script.sh by the ssh terminal. To auto restart the server and save all the logs that happens on the distro, this script will start the server every time it crashes, closes or on the save server.
1 - Let's see if the nano is installed on your Linux machine, run on the terminal:
2 - Let's go in the way of your server folder everything will be done here:
3 - Now let's create the script.sh:
Then enter:
Save with CTRL+X after Y and Enter:
4 - Let's give permission to the created script:
5 - Now let's create the folder where the server logs will be saved:
6 - Now just start in the terminal the script ./canary.sh, you need to have the screen installed:
Install the screen:
6.1 - Basic screen commands:
Open a screen:
Exit a screen:
Back to the last open screen:
Close a screen:
Info:
Credits:
Beats.