Modifying niceness of WROLPi services to facilitate API startup.

This commit is contained in:
Roland 2025-03-03 19:28:35 -07:00
parent f72ecf2682
commit 5de3caf839
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
4 changed files with 8 additions and 0 deletions

View file

@ -11,6 +11,8 @@ Group=wrolpi
User=wrolpi
WorkingDirectory=/opt/wrolpi/
Restart=on-failure
# Higher than the App so the API can start.
Nice=4
[Install]
WantedBy=default.target

View file

@ -9,6 +9,8 @@ ExecStart=/usr/bin/npm run start
Group=wrolpi
User=wrolpi
WorkingDirectory=/opt/wrolpi/app/
# Below the API so that Sanic worker can start.
Nice=6
[Install]
WantedBy=default.target

View file

@ -8,6 +8,8 @@ ExecStart=/bin/bash -c 'source /opt/wrolpi-help/venv/bin/activate && exec mkdocs
Group=wrolpi
User=wrolpi
WorkingDirectory=/opt/wrolpi-help/
# Below the App, but below the user.
Nice=1
[Install]
WantedBy=default.target

View file

@ -7,6 +7,8 @@ ExecStart=/opt/wrolpi/scripts/start_kiwix_serve.sh
Group=wrolpi
User=wrolpi
WorkingDirectory=/opt/wrolpi/
# Below the API, but above the Map.
Nice=8
[Install]
WantedBy=default.target