aboutsummaryrefslogtreecommitdiff
path: root/minecraft.service
blob: 5f2a6c405c4cd1e243ed188c878a83b8b04f211a (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=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

[Install]
WantedBy=multi-user.target