aboutsummaryrefslogtreecommitdiff
path: root/minecraft.service
blob: 428c9af1a2a0f89a6105e4e62544dd2f7865268c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# minecraft.service

[Unit] 
Description=Minecraft Server

[Service]
Type=forking
User=minecraft
Group=minecraft
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

[Install]
WantedBy=multi-user.target