refacotr: clean up

This commit is contained in:
Adam Douglas 2020-02-06 21:39:09 -06:00
parent 29fd05b637
commit 04dfb94431
3 changed files with 18 additions and 11 deletions

View File

@ -4,19 +4,22 @@ 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
InaccessibleDirectories=/root /sys /mnt/data/ssd
ReadWriteDirectories=/srv/minecraft/spigot/bin
WorkingDirectory=/srv/minecraft/spigot/bin
ExecStart=/srv/minecraft/spigot/bin/warden-backup
ReadWriteDirectories=/srv/minecraft/paper/backup
WorkingDirectory=/srv/minecraft/paper/backup
ExecStart=/usr/local/bin/wardenctl backup
[Install]
WantedBy=multi-user.target

View File

@ -1,21 +1,25 @@
[Unit]
Description=Minecraft Stats
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
InaccessibleDirectories=/root /sys /mnt/data/ssd
ReadWriteDirectories=/srv/http/sites/MinecraftStats
WorkingDirectory=/srv/http/sites/MinecraftStats
ExecStart=/srv/http/sites/MinecraftStats/update.py -s /srv/minecraft/spigot/server --server-name Crusydus --world survival
ExecStart=/srv/http/sites/MinecraftStats/update.py -s /srv/minecraft/paper/server --server-name Crusydus --world survival
[Install]
WantedBy=multi-user.target

View File

@ -1,5 +1,5 @@
[Unit]
Description=Minecraft Stats
Description=MinecraftStats
[Timer]
OnBootSec=1min