Skip to content

Instantly share code, notes, and snippets.

@lfittl
Created June 10, 2019 14:53
Show Gist options
  • Save lfittl/9b28e5931bcdcf9964c32979bb7f35c8 to your computer and use it in GitHub Desktop.
Save lfittl/9b28e5931bcdcf9964c32979bb7f35c8 to your computer and use it in GitHub Desktop.
[Unit]
Description=Keeper for pg_auto_failover
After=network.target
[Service]
ExecStart=/usr/bin/pg_autoctl run --pgdata /path/to/pg/data
User=postgres
ProtectSystem=full
ProtectHome=true
CapabilityBoundingSet=
NoNewPrivileges=true
Restart=always
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment