From c470b2e00d4c0fa2a8a8001c0dfabe4232f79976 Mon Sep 17 00:00:00 2001 From: Bram van Dartel Date: Thu, 18 Apr 2024 11:23:00 +0200 Subject: [PATCH] fix --- rootfs/etc/s6-overlay/s6-rc.d/svc-dsmr-backend/run | 4 +--- rootfs/etc/s6-overlay/s6-rc.d/svc-dsmr-datalogger/run | 4 +--- rootfs/etc/s6-overlay/s6-rc.d/svc-dsmr-remote-datalogger/run | 4 +--- rootfs/etc/s6-overlay/s6-rc.d/svc-dsmr-webinterface/run | 4 +--- 4 files changed, 4 insertions(+), 12 deletions(-) diff --git a/rootfs/etc/s6-overlay/s6-rc.d/svc-dsmr-backend/run b/rootfs/etc/s6-overlay/s6-rc.d/svc-dsmr-backend/run index 5715b3d..b2a41f1 100755 --- a/rootfs/etc/s6-overlay/s6-rc.d/svc-dsmr-backend/run +++ b/rootfs/etc/s6-overlay/s6-rc.d/svc-dsmr-backend/run @@ -4,9 +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 /dsmr/manage.py dsmr_backend + nice -n 10 s6-setuidgid app /usr/local/bin/python3 -u /dsmr/manage.py dsmr_backend else sleep infinity fi \ No newline at end of file diff --git a/rootfs/etc/s6-overlay/s6-rc.d/svc-dsmr-datalogger/run b/rootfs/etc/s6-overlay/s6-rc.d/svc-dsmr-datalogger/run index 0434ef4..b667e71 100755 --- a/rootfs/etc/s6-overlay/s6-rc.d/svc-dsmr-datalogger/run +++ b/rootfs/etc/s6-overlay/s6-rc.d/svc-dsmr-datalogger/run @@ -4,9 +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 /dsmr/manage.py dsmr_datalogger + nice -n 5 s6-setuidgid app /usr/local/bin/python3 -u /dsmr/manage.py dsmr_datalogger else sleep infinity fi \ No newline at end of file diff --git a/rootfs/etc/s6-overlay/s6-rc.d/svc-dsmr-remote-datalogger/run b/rootfs/etc/s6-overlay/s6-rc.d/svc-dsmr-remote-datalogger/run index 52a9007..521e68a 100755 --- a/rootfs/etc/s6-overlay/s6-rc.d/svc-dsmr-remote-datalogger/run +++ b/rootfs/etc/s6-overlay/s6-rc.d/svc-dsmr-remote-datalogger/run @@ -4,9 +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 /dsmr/dsmr_datalogger/scripts/dsmr_datalogger_api_client.py + nice -n 5 s6-setuidgid app /usr/local/bin/python3 -u /dsmr/dsmr_datalogger/scripts/dsmr_datalogger_api_client.py else sleep infinity fi \ No newline at end of file diff --git a/rootfs/etc/s6-overlay/s6-rc.d/svc-dsmr-webinterface/run b/rootfs/etc/s6-overlay/s6-rc.d/svc-dsmr-webinterface/run index c178fa1..cb9096b 100755 --- a/rootfs/etc/s6-overlay/s6-rc.d/svc-dsmr-webinterface/run +++ b/rootfs/etc/s6-overlay/s6-rc.d/svc-dsmr-webinterface/run @@ -4,9 +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 + nice -n 15 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