mirror of
https://github.com/msfjarvis/server-config
synced 2025-08-14 12:57:00 +05:30
Add daas configuration
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
This commit is contained in:
parent
2a3fdb548a
commit
18091edc15
3 changed files with 30 additions and 1 deletions
21
systemd_units/daas.service
Normal file
21
systemd_units/daas.service
Normal file
|
@ -0,0 +1,21 @@
|
|||
[Unit]
|
||||
Description=daas: demangle-as-a-service
|
||||
After=syslog.target
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
LimitMEMLOCK=infinity
|
||||
LimitNOFILE=65535
|
||||
RestartSec=2s
|
||||
Type=simple
|
||||
User=caddy
|
||||
Group=caddy
|
||||
ExecStart=/usr/local/bin/daas
|
||||
Restart=always
|
||||
CPUWeight=2
|
||||
CPUQuota=2%
|
||||
IOWeight=2
|
||||
MemorySwapMax=1
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -8,7 +8,7 @@ function prettyPrint {
|
|||
}
|
||||
|
||||
# Grab all service names
|
||||
declare -a services=('caddy' 'gitea' 'mirror-bot' 'mirror-bot-2' 'uno-bot' 'walls-bot')
|
||||
declare -a services=('caddy' 'daas' 'gitea' 'mirror-bot' 'mirror-bot-2' 'uno-bot' 'walls-bot')
|
||||
|
||||
# Now loop through each service and install it
|
||||
for service in "${services[@]}"; do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue