Skip to content

Commit

Permalink
Add Wants=postgresql.service to Pulpcore service files
Browse files Browse the repository at this point in the history
Wants is a weak requirement, so the service won't fail it can't be
started but systemd will at least try it. That should work with help
when postgresql is local.
  • Loading branch information
ekohl authored and ehelms committed Oct 11, 2024
1 parent 83d5f44 commit d75c952
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions templates/pulpcore-api.service.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Description=Pulp API Server
After=network.target
Requires=pulpcore-api.socket
Wants=postgresql.service

[Service]
Type=notify
Expand Down
1 change: 1 addition & 0 deletions templates/pulpcore-content.service.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Description=Pulp Content App
Requires=pulpcore-content.socket
After=network.target
Wants=postgresql.service

[Service]
Type=notify
Expand Down
2 changes: 1 addition & 1 deletion templates/[email protected]
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[Unit]
Description=Pulp Worker
After=network-online.target
Wants=network-online.target
Wants=network-online.target postgresql.service

[Service]
Type=simple
Expand Down

0 comments on commit d75c952

Please sign in to comment.