1
0
Fork 0
home-stack-ansible/roles/minecraft-server/files/minecraft-server.service

14 lines
334 B
Desktop File

[Unit]
Description=Minecraft Server
Documentation=https://minecraft.fandom.com/wiki/Tutorials/Setting_up_a_server
After=network-online.target
[Service]
Type=simple
User=minecraft
Group=minecraft
WorkingDirectory=/srv/minecraft-server
ExecStart=/bin/bash /srv/minecraft-server/minecraft-server.sh
[Install]
WantedBy=multi-user.target