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 [email protected] that is the template. The instantiated services are then called like [email protected].
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 -- [email protected] | http://www.df7cb.de/
signature.asc
Description: Digital signature
_______________________________________________ Pkg-postgresql-public mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-postgresql-public
