Skip to content

Commit 9729a4c

Browse files
committed
fix: update adminapi systemd unit file to wait for the network and pgbouncer
1 parent f832c25 commit 9729a4c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

ansible/files/adminapi.service.j2

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,26 @@
11
[Unit]
22
Description=AdminAPI
3+
Requires=network-online.target
4+
After=network-online.target pgbouncer.service
5+
Wants=pgbouncer.service
6+
7+
# Move this to the Service section if on systemd >=250
8+
StartLimitIntervalSec=60
9+
StartLimitBurst=10
310

411
[Service]
512
Type=simple
613
ExecStart=/opt/supabase-admin-api
714
User=adminapi
815
Restart=always
916
RestartSec=3
17+
TimeoutStopSec=10
1018
Environment="AWS_USE_DUALSTACK_ENDPOINT=true"
1119
{% if qemu_mode is defined and qemu_mode %}
1220
Environment="AWS_SDK_LOAD_CONFIG=true"
1321
{% endif %}
22+
StandardOutput=journal
23+
StandardError=journal
1424

1525
[Install]
1626
WantedBy=multi-user.target

0 commit comments

Comments
 (0)