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
4store.nix
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
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
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