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/minecraft0backup.service

23 lines
455 B
SYSTEMD
Raw Normal View History

2020-01-03 03:00:54 +00:00
[Unit]
Description=Minecraft Server Backup
Wants=network.target
After=network.target
[Service]
User=minecraft
Group=minecraft
Nice=5
ProtectHome=true
ProtectSystem=full
PrivateDevices=true
NoNewPrivileges=true
PrivateTmp=true
2020-01-03 03:06:36 +00:00
InaccessibleDirectories=/root /sys /mnt/data/ssd
2020-01-03 03:00:54 +00:00
ReadWriteDirectories=/srv/minecraft/spigot/bin
WorkingDirectory=/srv/minecraft/spigot/bin
ExecStart=/srv/minecraft/spigot/bin/warden-backup
[Install]
2020-01-03 03:06:36 +00:00
WantedBy=multi-user.target