18 lines
310 B
Plaintext
18 lines
310 B
Plaintext
|
[Unit]
|
||
|
Description=Runners to orchestrate a high-availability PostgreSQL
|
||
|
After=syslog.target network.target
|
||
|
|
||
|
[Service]
|
||
|
Type=simple
|
||
|
|
||
|
User=postgres
|
||
|
Group=postgres
|
||
|
|
||
|
ExecStart=/usr/bin/patroni /etc/patroni/config-{{ cluster_name }}.yml
|
||
|
KillMode=process
|
||
|
TimeoutSec=30
|
||
|
Restart=no
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.targ
|