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
SYSTEMD
Raw Permalink Normal View History

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