Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit fe99dc9

Browse files
authored
Update pg_backup.service
1 parent f60c5c0 commit fe99dc9

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

‎pg_backup/pg_backup.service‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
[Unit]
22
Description=PostgreSQL backup service
3-
3+
44
[Service]
55
User=postgres
66
Group=postgres
7-
8-
ExecCondition=echo "pg_backup: check if PostgreSQL is primary"
9-
ExecCondition=/bin/bash -c "test f = $(psql --user=bkp_replicator --no-password --dbname=postgres --quiet --no-psqlrc --pset=null=¤ --tuples-only --no-align --command='select pg_is_in_recovery()')"
7+
8+
ExecCondition=/bin/bash /var/lib/pgsql/pg_backup.sh ExecCondition
109
ExecStart=/bin/bash /var/lib/pgsql/pg_backup.sh
11-
10+
1211
[Install]
1312
WantedBy=multi-user.target

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /