Skip to content

Commit

Permalink
update webinterface startup bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Bram van Dartel committed Apr 20, 2024
1 parent c0d810a commit 5a48d14
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ concurrency:
env:
DOCKER_TARGET_REPO: xirixiz/dsmr-reader-docker
DOCKERFILE: Dockerfile
DOCKER_TARGET_RELEASE: 2024.04.02
DOCKER_TARGET_RELEASE: 2024.04.03

jobs:
################################################
Expand Down
2 changes: 1 addition & 1 deletion rootfs/etc/s6-overlay/s6-rc.d/svc-dsmr-backend/run
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
if [[ "${DSMRREADER_OPERATION_MODE}" = standalone || "${DSMRREADER_OPERATION_MODE}" = api_server ]]; then
echo "Starting DSMR Reader - backend..."
cd /app || exit
nice -n 10 s6-setuidgid app /usr/local/bin/python3 -u /app/manage.py dsmr_backend
s6-setuidgid app /usr/local/bin/python3 -u /app/manage.py dsmr_backend
else
sleep infinity
fi
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
init-docker-entrypoint
svc-nginx
init-docker-entrypoint
2 changes: 1 addition & 1 deletion rootfs/etc/s6-overlay/s6-rc.d/svc-dsmr-datalogger/run
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
if [[ "${DSMRREADER_OPERATION_MODE}" = standalone ]]; then
echo "Starting DSMR Reader - datalogger..."
cd /app || exit
nice -n 5 s6-setuidgid app /usr/local/bin/python3 -u /app/manage.py dsmr_datalogger
s6-setuidgid app /usr/local/bin/python3 -u /app/manage.py dsmr_datalogger
else
sleep infinity
fi
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
init-docker-entrypoint
svc-nginx
init-docker-entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
if [[ "${DSMRREADER_OPERATION_MODE}" = api_client ]]; then
echo "Starting DSMR Reader - remote datalogger (api_client)..."
cd /app || exit
nice -n 5 s6-setuidgid app /usr/local/bin/python3 -u /app/dsmr_datalogger_api_client.py
s6-setuidgid app /usr/local/bin/python3 -u /app/dsmr_datalogger_api_client.py
else
sleep infinity
fi
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
init-docker-entrypoint
init-docker-entrypoint
svc-dsmr-backend-log
2 changes: 1 addition & 1 deletion rootfs/etc/s6-overlay/s6-rc.d/svc-dsmr-webinterface/run
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
if [[ "${DSMRREADER_OPERATION_MODE}" = standalone || "${DSMRREADER_OPERATION_MODE}" = api_server ]]; then
echo "Starting DSMR Reader - webinterface..."
cd /app || exit
nice -n 15 s6-setuidgid app /usr/local/bin/gunicorn dsmrreader.wsgi --timeout 60 --max-requests 500 --bind unix:/tmp/gunicorn--dsmr_webinterface.socket
s6-setuidgid app /usr/local/bin/gunicorn dsmrreader.wsgi --timeout 60 --max-requests 500 --bind unix:/tmp/gunicorn--dsmr_webinterface.socket
else
sleep infinity
fi
3 changes: 2 additions & 1 deletion rootfs/etc/s6-overlay/s6-rc.d/svc-nginx/dependencies
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
init-docker-entrypoint
init-docker-entrypoint
svc-dsmr-webinterface

0 comments on commit 5a48d14

Please sign in to comment.