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

14 lines
334 B
SYSTEMD
Raw Normal View History

2023-06-13 14:01:08 +00:00
[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