This repository has been archived on 2024-07-17. You can view files and clone it, but cannot push or open issues or pull requests.
minecraft-systemd-services/minecraft-backup.service

26 lines
506 B
Desktop File

[Unit]
Description=Minecraft Server Backup
Wants=network.target
After=network.target
[Service]
Type=simple
User=minecraft
Group=minecraft
Nice=5
KillMode=none
ProtectHome=true
ProtectSystem=full
ProtectControlGroups=true
ProtectKernelModules=true
ProtectKernelTunables=true
PrivateDevices=true
NoNewPrivileges=true
PrivateTmp=true
ReadWriteDirectories=/srv/minecraft/paper/backup
WorkingDirectory=/srv/minecraft/paper/backup
ExecStart=/usr/local/bin/wardenctl backup
[Install]
WantedBy=multi-user.target