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

2020-01-03 03:13:22 +00:00
[Unit]
Description=MinecraftStats Update Data
2020-01-03 03:13:22 +00:00
Wants=network.target
After=network.target
[Service]
2020-02-07 03:39:09 +00:00
Type=simple
2020-01-03 03:13:22 +00:00
User=root
Group=root
Nice=5
2020-02-07 03:39:09 +00:00
KillMode=none
2020-01-03 03:13:22 +00:00
ProtectHome=true
ProtectSystem=full
2020-02-07 03:39:09 +00:00
ProtectControlGroups=true
ProtectKernelModules=true
ProtectKernelTunables=true
2020-01-03 03:13:22 +00:00
PrivateDevices=true
NoNewPrivileges=true
PrivateTmp=true
ReadWriteDirectories=/srv/http/sites/MinecraftStats
WorkingDirectory=/srv/http/sites/MinecraftStats
2020-02-07 03:39:09 +00:00
ExecStart=/srv/http/sites/MinecraftStats/update.py -s /srv/minecraft/paper/server --server-name Crusydus --world survival
2020-01-03 03:13:22 +00:00
[Install]
2020-02-07 03:39:09 +00:00
WantedBy=multi-user.target