Differences

This shows you the differences between two versions of the page.

Link to this comparison view

sesipod:linux:debian:autostart-ts-mc [2018/01/20 04:45] (current)
Line 1: Line 1:
 +==== Auto start Minecraft servers (tested Debian 7/8)======
  
 +Last Tested: 10/14/2015
 +
 +Last Updated: 10/14/2015
 +
 +----
 +
 +Install Screen.
 +
 +**Command=** ''​apt-get install screen''​
 +
 +Edit the following rc.local file.
 +
 +**Command=** ''​nano /​etc/​rc.local''​
 +
 +Add the following line to it, before the “exit 0? line.
 +
 +Change (path-to-start-.sh) to the folder containing the .sh file, Change (NAMEOFSCREENTASK) to what ever you want and change ./​NAME-OF-START-SH to the sh file name leaving ./ there. ​ remove ( ) in each..
 +
 +  cd (path-to-start-.sh) && screen -dmS (NAMEOFSCREENTASK) ./​NAME-OF-START-SH
 +
 +
 +Then exit the file saving the file as the same name then reboot the server.