How do I automatically restart a Minecraft Spigot server in the event of a crash or /stop when using screen?

Tutorial A friend wrote a bash script to automatically restart a minecraft (spigot) server in the event of a crash or with the command “/stop” when using screen. There are several seconds to cancel the restart with Enter. In addition, the exit codes of the previous session are written to a file, which can be … Read more

How to restart remote MySQL server running on Ubuntu linux?

SSH into the machine. Using the proper credentials and ip address, ssh [email protected]. This should provide you with shell access to the Ubuntu server. Restart the mySQL service. sudo service mysql restart should do the job. If your mySQL service is named something else like mysqld you may have to change the command accordingly or try this: sudo /etc/init.d/mysql restart

tech