supabase-postgres.git / summary / log / commit / refs

commit    83ebd030a35022fdded45065a0c2c7c93d20fc43
Author:   Crispy <12525875+Crispy1975@users.noreply.github.com>
Commit:   GitHub <noreply@github.com>
Date:     Sun May 18 14:14:50 2025 +0000

    fix: update adminapi systemd unit file to wait for the network (#1595)
    
    * fix: update adminapi systemd unit file to wait for the network and pgbouncer
    
    * fix: remove the want pgboucner section as we might not want it to always start


ansible/files/adminapi.service.j2 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ansible/files/adminapi.service.j2 b/ansible/files/adminapi.service.j2 index 3b282198..ed5a5b39 100644 --- a/ansible/files/adminapi.service.j2 +++ b/ansible/files/adminapi.service.j2 @@ -1,5 +1,11 @@ [Unit] Description=AdminAPI +Requires=network-online.target +After=network-online.target pgbouncer.service + +# Move this to the Service section if on systemd >=250 +StartLimitIntervalSec=60 +StartLimitBurst=10 [Service] Type=simple @@ -7,10 +13,13 @@ ExecStart=/opt/supabase-admin-api User=adminapi Restart=always RestartSec=3 +TimeoutStopSec=10 Environment="AWS_USE_DUALSTACK_ENDPOINT=true" {% if qemu_mode is defined and qemu_mode %} Environment="AWS_SDK_LOAD_CONFIG=true" {% endif %} +StandardOutput=journal +StandardError=journal [Install] WantedBy=multi-user.target [parent: fcb876d38687]