blob: 2565bc8144ed2726b598cc9c383d29ef3069d32e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# minecraft.service
[Unit]
Description=Minecraft Server
[Service]
Type=forking
User=minecraftuser
Group=minecraftuser
PIDFile=/var/minecraft/server-screen.pid
Restart=on-failure
RestartSec=30s
ExecStart=/var/minecraft/server.sh start
TimeoutStopSec= 180
ExecStop=/var/minecraft/server.sh stop
StartLimitInterval=10min
StartLimitBurst=2
[Install]
WantedBy=multi-user.target
|