Some checks failed
Ansible Minecraft CI/CD Pipeline / Ansible Lint Check (push) Successful in 58s
Ansible Minecraft CI/CD Pipeline / Project Structure Validation (push) Failing after 3s
Ansible Minecraft CI/CD Pipeline / Security Scan (push) Successful in 4s
Ansible Minecraft CI/CD Pipeline / Deploy to Staging (push) Has been skipped
Ansible Minecraft CI/CD Pipeline / Deploy to Production (push) Has been skipped
Ansible Minecraft CI/CD Pipeline / Backup System Check (push) Has been skipped
18 lines
494 B
Django/Jinja
18 lines
494 B
Django/Jinja
[Unit]
|
|
Description=Minecraft Spigot Server
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=forking
|
|
User={{ minecraft_user }}
|
|
Group={{ minecraft_group }}
|
|
WorkingDirectory={{ minecraft_server_dir }}
|
|
ExecStart=/usr/bin/java -Xms{{ minecraft_memory_min }} -Xmx{{ minecraft_memory_max }} -jar spigot.jar nogui
|
|
ExecStop=/usr/local/bin/mcrcon -H 127.0.0.1 -P {{ rcon_port }} -p {{ rcon_password }} stop
|
|
TimeoutStartSec=600
|
|
TimeoutStopSec=600
|
|
Restart=on-failure
|
|
RestartSec=20
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target |