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/glacier2.service | 15 +++++++++++++++ systemd-units/icebox.service | 12 ++++++++++++ systemd-units/slony1.service | 14 ++++++++++++++ 3 files changed, 41 insertions(+) create mode 100644 systemd-units/glacier2.service create mode 100644 systemd-units/icebox.service create mode 100644 systemd-units/slony1.service (limited to 'systemd-units') diff --git a/systemd-units/glacier2.service b/systemd-units/glacier2.service new file mode 100644 index 0000000..2eadf81 --- /dev/null +++ b/systemd-units/glacier2.service @@ -0,0 +1,15 @@ +[Unit] +Description=ZeroC ICE Glacier2 Router + +[Service] +Type=simple +StandardOutput=journal +StandardError=journal +Restart=always +StartLimitInterval=10 +StartLimitBurst=5 +ExecStart=/usr/bin/glacier2router --Ice.Config=/etc/conf.d/glacier2 + +[Install] +WantedBy=multi-user.target + diff --git a/systemd-units/icebox.service b/systemd-units/icebox.service new file mode 100644 index 0000000..534028e --- /dev/null +++ b/systemd-units/icebox.service @@ -0,0 +1,12 @@ +[Unit] +Description=IceBox service for %I +After=network.target + +[Service] +ExecStart=/usr/bin/icebox \ + --Ice.ProgramName=%I \ + --Ice.Config=/etc/%I/icebox.config +Restart=on-failure + +[Install] +WantedBy=multi-user.target 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