Skip to content

Commit 83ebd03

Browse files
authored
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
1 parent fcb876d commit 83ebd03

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

ansible/files/adminapi.service.j2

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

410
[Service]
511
Type=simple
612
ExecStart=/opt/supabase-admin-api
713
User=adminapi
814
Restart=always
915
RestartSec=3
16+
TimeoutStopSec=10
1017
Environment="AWS_USE_DUALSTACK_ENDPOINT=true"
1118
{% if qemu_mode is defined and qemu_mode %}
1219
Environment="AWS_SDK_LOAD_CONFIG=true"
1320
{% endif %}
21+
StandardOutput=journal
22+
StandardError=journal
1423

1524
[Install]
1625
WantedBy=multi-user.target

0 commit comments

Comments
 (0)