[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