diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-12-04 21:28:51 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-12-04 21:28:51 +0000 |
commit | 4cf01fa19d5d5d82d959c4bf472fe14f008466c2 (patch) | |
tree | 6cbc8c611315dd06aaae2a18f4cdcbfde2d6d281 /systemd-units/slony1.service | |
parent | ocfs2.service (diff) | |
download | util-icebox-service-1.tar.bz2 util-icebox-service-1.tar.xz util-icebox-service-1.zip |
Add glacier2.service icebox.service slony1.serviceslony1-service-1icebox-service-1glacier2-service-1
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 + |