Skip to content

Minecraft server autostart

License

Notifications You must be signed in to change notification settings

01ive/minecraft-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minecraft server autostart on Linux

Installation

  1. Install minecraft in /opt
  2. Copy minecraft.service file in /etc/systemd/system directory.
  3. Test server using sudo systemctl start minecraft.service
  4. Enable server at startup using sudo systemctl enable minecraft

Usefull commands

  • View logs using command journalctl -u minecraft.service or view_logs.sh script
  • Stop server using comand journalctl stop minecraft.service