From 4cf01fa19d5d5d82d959c4bf472fe14f008466c2 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 4 Dec 2015 21:28:51 +0000 Subject: Add glacier2.service icebox.service slony1.service --- systemd-units/slony1.service | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 systemd-units/slony1.service (limited to 'systemd-units/slony1.service') 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 + -- cgit v1.2.3