restart uwsgi workers after a while to free up memory

This commit is contained in:
wh1te909 2020-03-01 12:31:04 +00:00
parent 8594332784
commit 0737766a47
2 changed files with 4 additions and 0 deletions

View File

@ -10,3 +10,5 @@ socket = /app/tacticalrmm.sock
# clear environment on exit
vacuum = true
die-on-term = true
max-requests = 500
max-requests-delta = 1000

View File

@ -265,6 +265,8 @@ chmod-socket = 660
# clear environment on exit
vacuum = true
die-on-term = true
max-requests = 500
max-requests-delta = 1000
EOF
)"
echo "${uwsgini}" > /home/${USER}/rmm/api/tacticalrmm/app.ini