summaryrefslogtreecommitdiff
path: root/systemd-units/slony1.service
blob: d17f250b22aee6b051b1d7474de3be17384e2536 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
[Unit]
Description=Slony1 Replication for PostgreSQL
After=network.target postgresql-9.3.service

[Service]
ExecStart=/usr/bin/slon -p /var/run/postgresql/slony1.pid -d ${LOGLEVEL} -f /etc/slony1.cfg ${CLUSTER} "dbname=${DBNAME} user=${DBUSER} host=${DBHOST}"
Restart=on-failure

User=postgres
Group=postgres

[Install]
WantedBy=multi-user.target