refacotr: clean up
This commit is contained in:
parent
29fd05b637
commit
04dfb94431
|
@ -4,19 +4,22 @@ Wants=network.target
|
||||||
After=network.target
|
After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
Type=simple
|
||||||
User=minecraft
|
User=minecraft
|
||||||
Group=minecraft
|
Group=minecraft
|
||||||
Nice=5
|
Nice=5
|
||||||
|
KillMode=none
|
||||||
ProtectHome=true
|
ProtectHome=true
|
||||||
ProtectSystem=full
|
ProtectSystem=full
|
||||||
|
ProtectControlGroups=true
|
||||||
|
ProtectKernelModules=true
|
||||||
|
ProtectKernelTunables=true
|
||||||
PrivateDevices=true
|
PrivateDevices=true
|
||||||
NoNewPrivileges=true
|
NoNewPrivileges=true
|
||||||
PrivateTmp=true
|
PrivateTmp=true
|
||||||
InaccessibleDirectories=/root /sys /mnt/data/ssd
|
ReadWriteDirectories=/srv/minecraft/paper/backup
|
||||||
ReadWriteDirectories=/srv/minecraft/spigot/bin
|
WorkingDirectory=/srv/minecraft/paper/backup
|
||||||
WorkingDirectory=/srv/minecraft/spigot/bin
|
ExecStart=/usr/local/bin/wardenctl backup
|
||||||
ExecStart=/srv/minecraft/spigot/bin/warden-backup
|
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
||||||
|
|
|
@ -4,18 +4,22 @@ Wants=network.target
|
||||||
After=network.target
|
After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
Type=simple
|
||||||
User=root
|
User=root
|
||||||
Group=root
|
Group=root
|
||||||
Nice=5
|
Nice=5
|
||||||
|
KillMode=none
|
||||||
ProtectHome=true
|
ProtectHome=true
|
||||||
ProtectSystem=full
|
ProtectSystem=full
|
||||||
|
ProtectControlGroups=true
|
||||||
|
ProtectKernelModules=true
|
||||||
|
ProtectKernelTunables=true
|
||||||
PrivateDevices=true
|
PrivateDevices=true
|
||||||
NoNewPrivileges=true
|
NoNewPrivileges=true
|
||||||
PrivateTmp=true
|
PrivateTmp=true
|
||||||
InaccessibleDirectories=/root /sys /mnt/data/ssd
|
|
||||||
ReadWriteDirectories=/srv/http/sites/MinecraftStats
|
ReadWriteDirectories=/srv/http/sites/MinecraftStats
|
||||||
WorkingDirectory=/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]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
Reference in New Issue