# Managed by Ansible — do not edit by hand. # pg_autoctl data-node systemd unit. [Unit] Description=pg_auto_failover data node (Postgres + keeper) After=network-online.target Wants=network-online.target [Service] Type=simple User=postgres Group=postgres Environment=PG_AUTOCTL_DEBUG=0 Environment=PGDATA={{ pg_auto_failover_state_dir }}/postgres ExecStart=/usr/lib/postgresql/{{ postgres_version }}/bin/pg_autoctl run --pgdata {{ pg_auto_failover_state_dir }}/postgres ExecReload=/bin/kill -HUP $MAINPID Restart=on-failure RestartSec=5s TimeoutStopSec=30s LimitNOFILE=65536 [Install] WantedBy=multi-user.target