Upload files to ''
parent
82bdfad2b7
commit
d7db267b65
|
@ -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
|
Loading…
Reference in New Issue