Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Bram van Dartel committed Apr 18, 2024
1 parent 5c6dde6 commit c470b2e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
4 changes: 1 addition & 3 deletions rootfs/etc/s6-overlay/s6-rc.d/svc-dsmr-backend/run
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 1 addition & 3 deletions rootfs/etc/s6-overlay/s6-rc.d/svc-dsmr-datalogger/run
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 1 addition & 3 deletions rootfs/etc/s6-overlay/s6-rc.d/svc-dsmr-remote-datalogger/run
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 1 addition & 3 deletions rootfs/etc/s6-overlay/s6-rc.d/svc-dsmr-webinterface/run
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit c470b2e

Please sign in to comment.