[Pkg-postgresql-public] systemd support

Christoph Berg myon at debian.org
Tue Mar 4 17:50:41 UTC 2014


Hi,

I've written systemd unit files for managing PostgreSQL clusters. The
idea is to run each cluster on its own using systemd's templating
mechanism. There is a master postgresql.service that doesn't do much
except serving as a way to make start/stop/restart/reload work for all
running clusters, and a postgresql at .service that is the template. The
instantiated services are then called like postgresql at 9.3-main.

The file are in bzr:
https://alioth.debian.org/scm/loggerhead/pkg-postgresql/postgresql-common/trunk/files/head:/systemd/

To work, you also need the pg_ctlcluster version from HEAD.
pg_ctlcluster now invokes postgres directly so it runs in foreground
instead of daemonizing with pg_ctl - this seems more like the systemd
way to do it.

I'd be curious to hear any feedback about that approach. Particularly,
we probably need to think about where the log should go to by default
(daemon.log now).

Christoph
-- 
cb at df7cb.de | http://www.df7cb.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-postgresql-public/attachments/20140304/f2570638/attachment.sig>


More information about the Pkg-postgresql-public mailing list