Skip to content

Commit 64653f5

Browse files
committed
Add a dependency on postgresql.service to xsnippet-api.service
xsnippet-api tries to connect to PostgreSQL on start and will fail if it's not available. Declare this dependency in systemd, so that the services always come up in the right order.
1 parent ae50993 commit 64653f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

roles/xsnippet_api/templates/systemd.service.j2

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[Unit]
22
Description = XSnippet API
3-
After = network.target network-online.target
4-
Wants = network-online.target
3+
After = network.target network-online.target postgresql.service
4+
Wants = network-online.target postgresql.service
55
StartLimitIntervalSec = 0
66

77
[Service]

0 commit comments

Comments
 (0)