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-stats.service

26 lines
573 B
Desktop File

[Unit]
Description=MinecraftStats
Wants=network.target
After=network.target
[Service]
Type=simple
User=root
Group=root
Nice=5
KillMode=none
ProtectHome=true
ProtectSystem=full
ProtectControlGroups=true
ProtectKernelModules=true
ProtectKernelTunables=true
PrivateDevices=true
NoNewPrivileges=true
PrivateTmp=true
ReadWriteDirectories=/srv/http/sites/MinecraftStats
WorkingDirectory=/srv/http/sites/MinecraftStats
ExecStart=/srv/http/sites/MinecraftStats/update.py -s /srv/minecraft/paper/server --server-name Crusydus --world survival
[Install]
WantedBy=multi-user.target