mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-21 07:26:18 -05:00
Modifying niceness of WROLPi services to facilitate API startup.
This commit is contained in:
parent
f72ecf2682
commit
5de3caf839
4 changed files with 8 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue