diff --git a/roles/01-base-server/templates/minecraft.service b/roles/01-base-server/templates/minecraft.service deleted file mode 100644 index 62a5ca9..0000000 --- a/roles/01-base-server/templates/minecraft.service +++ /dev/null @@ -1,40 +0,0 @@ -# [Service] -Environment=SHELL=/bin/bash -# Environment=TMUX_SESSION=minecraft -# Environment=TMUX_WINDOW=spigot -# Environment=JVM_OPTS="-server -XX:+UseConcMarkSweepGC -XX:MaxGCPauseMillis=50 -Xmx3G" -# WorkingDirectory={{ minecraft_home }} -# ExecStart=/bin/bash {{ minecraft_home }}/minecraft-server-start.sh -# ExecStop=/bin/bash {{ minecraft_home }}/minecraft-server-stop.sh - -[Install] -WantedBy=multi-user.target - -[Unit] -Description=Minecraft Server -Wants=network.target -After=network.target - -[Service] -User=minecraft -Group=minecraft -UMask=0027 - -Restart=on-failure -Type=forking -Nice=1 -KillMode=none -SuccessExitStatus=0 1 255 -StartLimitBurst=5 - -NoNewPrivileges=true -PrivateDevices=true -ProtectHome=true -ProtectSystem=full - -WorkingDirectory=/opt/minecraft/server -ExecStart=/usr/bin/java -Xmx2048M -Xms2048M -jar spigot-1.21.8.jar nogui -ExecStop=/opt/minecraft/tools/mcrcon/mcrcon -H 127.0.0.1 -P 25575 -p ${]Password} stop - -[Install] -WantedBy=multi-user.target \ No newline at end of file