diff --git a/systemd_units/caddy.service b/systemd_units/caddy.service index f151c99..5d6ce79 100644 --- a/systemd_units/caddy.service +++ b/systemd_units/caddy.service @@ -24,6 +24,10 @@ ReadWriteDirectories=/etc/ssl/caddy CapabilityBoundingSet=CAP_NET_BIND_SERVICE AmbientCapabilities=CAP_NET_BIND_SERVICE NoNewPrivileges=true +CPUWeight=10 +CPUQuota=10% +IOWeight=20 +MemorySwapMax=0 [Install] WantedBy=multi-user.target diff --git a/systemd_units/gitea.service b/systemd_units/gitea.service index 9f34a29..d6e82e3 100644 --- a/systemd_units/gitea.service +++ b/systemd_units/gitea.service @@ -17,6 +17,10 @@ Restart=always Environment=USER=git HOME=/home/git GITEA_WORK_DIR=/var/lib/gitea #CapabilityBoundingSet=CAP_NET_BIND_SERVICE #AmbientCapabilities=CAP_NET_BIND_SERVICE +CPUWeight=20 +CPUQuota=25% +IOWeight=20 +MemorySwapMax=0 [Install] WantedBy=multi-user.target diff --git a/systemd_units/mirror-bot-2.service b/systemd_units/mirror-bot-2.service index 0f87da2..c6dcd2e 100644 --- a/systemd_units/mirror-bot-2.service +++ b/systemd_units/mirror-bot-2.service @@ -16,6 +16,10 @@ TimeoutStopSec=5s PrivateTmp=true PrivateDevices=true ProtectSystem=full +CPUWeight=10 +CPUQuota=10% +IOWeight=20 +MemorySwapMax=0 [Install] WantedBy=multi-user.target diff --git a/systemd_units/mirror-bot.service b/systemd_units/mirror-bot.service index 6684587..9bece42 100644 --- a/systemd_units/mirror-bot.service +++ b/systemd_units/mirror-bot.service @@ -16,6 +16,10 @@ TimeoutStopSec=5s PrivateTmp=true PrivateDevices=true ProtectSystem=full +CPUWeight=10 +CPUQuota=10% +IOWeight=20 +MemorySwapMax=0 [Install] WantedBy=multi-user.target diff --git a/systemd_units/uno-bot.service b/systemd_units/uno-bot.service index 7a57c9c..6c18b89 100644 --- a/systemd_units/uno-bot.service +++ b/systemd_units/uno-bot.service @@ -15,6 +15,10 @@ TimeoutStopSec=5s PrivateTmp=true PrivateDevices=false ProtectSystem=full +CPUWeight=10 +CPUQuota=10% +IOWeight=20 +MemorySwapMax=0 [Install] WantedBy=multi-user.target diff --git a/systemd_units/walls-bot-2.service b/systemd_units/walls-bot-2.service index c695977..1ecaa5d 100644 --- a/systemd_units/walls-bot-2.service +++ b/systemd_units/walls-bot-2.service @@ -15,6 +15,10 @@ TimeoutStopSec=5s PrivateTmp=true PrivateDevices=false ProtectSystem=full +CPUWeight=10 +CPUQuota=10% +IOWeight=20 +MemorySwapMax=0 [Install] WantedBy=multi-user.target diff --git a/systemd_units/walls-bot.service b/systemd_units/walls-bot.service index 933491a..38fbc93 100644 --- a/systemd_units/walls-bot.service +++ b/systemd_units/walls-bot.service @@ -15,6 +15,10 @@ TimeoutStopSec=5s PrivateTmp=true PrivateDevices=false ProtectSystem=full +CPUWeight=10 +CPUQuota=10% +IOWeight=20 +MemorySwapMax=0 [Install] WantedBy=multi-user.target