Upload files to ''

master
Jan Danielzick 2021-10-09 21:01:09 +02:00
parent 82bdfad2b7
commit d7db267b65
1 changed files with 19 additions and 0 deletions

19
minecraft@.service Normal file
View File

@ -0,0 +1,19 @@
[Unit]
Description=Minecraft Server: %i
After=network.target
[Service]
WorkingDirectory=/var/minecraft/instances/%i
User=minecraft
Group=minecraft
Restart=no
ExecStart=/usr/bin/screen -DmS minecraft-%i ./start_server.sh
ExecStop=/usr/bin/screen -p 0 -S minecraft-%i -X eval 'stuff "save-all"\015'
ExecStop=/usr/bin/screen -p 0 -S minecraft-%i -X eval 'stuff "stop"\015'
[Install]
WantedBy=multi-user.target