diff options
Diffstat (limited to 'systemd-units/slony1.service')
-rw-r--r-- | systemd-units/slony1.service | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/systemd-units/slony1.service b/systemd-units/slony1.service new file mode 100644 index 0000000..d17f250 --- /dev/null +++ b/systemd-units/slony1.service @@ -0,0 +1,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 + |