mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-01 12:26:19 -05:00
Adding DEBUS to api systemd services.
This commit is contained in:
parent
929468821b
commit
4537c63d89
3 changed files with 8 additions and 2 deletions
|
|
@ -8,6 +8,8 @@ Conflicts=wrolpi-api.service
|
|||
Environment=PYTHONUNBUFFERED=1
|
||||
# Sanic 25.x wants 'spawn' but our code uses 'fork' for multiprocessing.
|
||||
Environment=SANIC_START_METHOD_SET=1
|
||||
# Required for yt-dlp to access GNOME keyring for browser cookie decryption.
|
||||
Environment=DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/%U/bus
|
||||
ExecStart=/opt/wrolpi/venv/bin/python -m sanic main:api_app --host 0.0.0.0 --port 8081 -w 2 --reload --debug
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
Group=wrolpi
|
||||
|
|
|
|||
|
|
@ -8,6 +8,8 @@ Conflicts=wrolpi-api-dev.service
|
|||
Environment=PYTHONUNBUFFERED=1
|
||||
# Sanic 25.x wants 'spawn' but our code uses 'fork' for multiprocessing.
|
||||
Environment=SANIC_START_METHOD_SET=1
|
||||
# Required for yt-dlp to access GNOME keyring for browser cookie decryption.
|
||||
Environment=DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/%U/bus
|
||||
ExecStart=/opt/wrolpi/venv/bin/python -O -m sanic main:api_app --host 0.0.0.0 --port 8081 -w 5
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
Group=wrolpi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue