Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@centos7g4 ~]# cat /usr/lib/systemd/system/pg_receivewal_data.service
- [Unit]
- Description=pg_receivewal archiver for instance data
- After=network.target
- StartLimitIntervalSec=0
- [Service]
- User=postgres
- Group=postgres
- Environment=PGPASSWORD=postgres
- PIDFile=/var/run/pg_receivewal.data.pid
- Restart=always
- RestartSec=10
- TimeoutStartSec=10
- ExecStartPre=/bin/mkdir -vp /mnt/nfs/probackup/wal/data
- ExecStartPre=/usr/pgsql-11/bin/pg_receivewal -h 10.0.2.7 -U postgres --if-not-exists --create-slot -S wal_archive -v
- #ExecStart=/usr/pgsql-11/bin/pg_receivewal -h 10.0.2.7 -U postgres -S wal_archive -v --compress=6 -D /mnt/nfs/probackup/wal/data
- ExecStart=/usr/pgsql-11/bin/pg_receivewal -h 10.0.2.7 -U postgres -S wal_archive -v -D /mnt/nfs/probackup/wal/data
- [Install]
- WantedBy=multi-user.target
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement