Advertisement
Guest User

Untitled

a guest
Feb 15th, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. [root@centos7g4 ~]# cat /usr/lib/systemd/system/pg_receivewal_data.service
  2. [Unit]
  3. Description=pg_receivewal archiver for instance data
  4. After=network.target
  5. StartLimitIntervalSec=0
  6.  
  7. [Service]
  8.  
  9. User=postgres
  10. Group=postgres
  11.  
  12. Environment=PGPASSWORD=postgres
  13. PIDFile=/var/run/pg_receivewal.data.pid
  14. Restart=always
  15. RestartSec=10
  16. TimeoutStartSec=10
  17. ExecStartPre=/bin/mkdir -vp /mnt/nfs/probackup/wal/data
  18. ExecStartPre=/usr/pgsql-11/bin/pg_receivewal -h 10.0.2.7 -U postgres --if-not-exists --create-slot -S wal_archive -v
  19. #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
  20. ExecStart=/usr/pgsql-11/bin/pg_receivewal -h 10.0.2.7 -U postgres -S wal_archive -v -D /mnt/nfs/probackup/wal/data
  21.  
  22. [Install]
  23. WantedBy=multi-user.target
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement