nixpkgs/nixos/modules/services/databases
Oliver Charles e206684110 Use PostgreSQL 9.3's pg_isready to wait for connectivity
The postgresql module has a postStart section that waits for a database
to accept connections before continuing. However, this assumes various
properties about the database - specifically the database user
and (implicitly) the database name. This means that for old
installations, this command fails because there is no 'postgres' user,
and the service never starts.

While 7deff39 does create the 'postgres' user, a better solution is to
use `pg_isready`, who's sole purpose is to check if the database is
accepting connections. This has no dependency on users, so should be
more robust.
2014-04-06 12:38:02 +01:00
..
4store-endpoint.nix Use the "assertions" option instead of mkAssert 2013-10-30 18:47:44 +01:00
4store.nix Use the "assertions" option instead of mkAssert 2013-10-30 18:47:44 +01:00
couchdb.nix nixos/couchdb: fix stopping of service, by making it non-forking, a few other improvments 2014-03-10 11:08:05 +01:00
firebird.nix nixos: set all package options to have type package 2014-02-27 13:22:29 +01:00
memcached.nix memcached: set uid to make it work with #1076 2013-12-13 10:09:08 +01:00
mongodb.nix nixos: set all package options to have type package 2014-02-27 13:22:29 +01:00
mysql.nix mysql service: Shutdown with normal systemd SIGTERM instead of mysqladmin 2014-03-19 08:41:07 +01:00
openldap.nix Added openldap user, group and configure service so its not running as root. 2013-11-28 22:21:50 +01:00
postgresql.nix Use PostgreSQL 9.3's pg_isready to wait for connectivity 2014-04-06 12:38:02 +01:00
redis.nix nixos: set all package options to have type package 2014-02-27 13:22:29 +01:00
virtuoso.nix Move all of NixOS to nixos/ in preparation of the repository merge 2013-10-10 13:28:20 +02:00