diff options
Diffstat (limited to 'systemd-units')
-rw-r--r-- | systemd-units/glacier2.service | 15 | ||||
-rw-r--r-- | systemd-units/icebox.service | 12 | ||||
-rw-r--r-- | systemd-units/slony1.service | 14 |
3 files changed, 41 insertions, 0 deletions
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 + |