Delete systemd-copypasta.txt

This commit is contained in:
creeper123123321 2022-06-18 09:48:53 -03:00 committed by GitHub
parent 54ca1dfd27
commit e6e9432cd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,27 +0,0 @@
# modified https://minecraft.fandom.com/wiki/Tutorials/Server_startup_script#Installation
[Unit]
Description=Minecraft Server %i
After=network.target
[Service]
WorkingDirectory=/opt/minecraft/%i
User=minecraft
Group=minecraft
PrivateUsers=true
ProtectSystem=full
ProtectHome=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectControlGroups=true
LimitMEMLOCK=64M
ExecStart=/usr/bin/screen -DmS mc-%i /bin/sh start.sh
ExecReload=/usr/bin/screen -p 0 -S mc-%i -X eval 'stuff "reload"\\015'
ExecStop=/usr/bin/screen -p 0 -S mc-%i -X eval 'stuff "end"\\015'
ExecStop=/usr/bin/screen -p 0 -S mc-%i -X eval 'stuff "stop"\\015'
Restart=on-failure
[Install]
WantedBy=multi-user.target