nixpkgs/nixos/modules/services/databases
Maximilian Bosch 6ae194e419
nixos/postgresql: set Restart=always for postgresql.service
...including a slightly more careful config around restarts, i.e.

* We have intervals of 5 seconds between restarts instead of 100ms.

* If we exceed 5 start attempts in 5*120s (with 120s being the timeout),
  start job gets rate-limited and thus aborted. Do note that there are
  at most 5 start attempts allowed in ~625s by default. If the startup
  fails very quickly, either wait until the rate-limit is over or reset
  the counter using `systemctl reset-failed postgresql.service`.

* The interval of 625s (plus 5s of buffer) are automatically derived
  from RestartSec & TimeoutSec. Changing either will also affect
  StartLimitIntervalSec unless overridden with `mkForce`.
2025-07-26 19:11:54 +02:00
..
aerospike.nix
cassandra.nix cassandra_3_0, cassandra_3_11: remove due to EOL 2025-04-22 10:19:56 +02:00
chromadb.nix
clickhouse.nix
cockroachdb.nix
couchdb.nix treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
dgraph.nix treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
dragonflydb.nix treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
etcd.nix treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
ferretdb.nix treewide: Format all Nix files 2025-04-01 20:10:43 +02:00
firebird.nix
foundationdb.md treewide: run treefmt with mdcr/nixfmt 2025-07-24 13:52:31 +02:00
foundationdb.nix treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
hbase-standalone.nix
influxdb.nix treewide: Format all Nix files 2025-04-01 20:10:43 +02:00
influxdb2.nix treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
lldap.nix
memcached.nix treewide: specify where mebibytes are used when it's ambiguous 2025-07-11 00:44:23 +03:00
monetdb.nix
mongodb.nix nixos/mongodb: fix initialScript when no initialRootPasswordFile is set 2025-05-28 22:50:27 +02:00
mysql.nix treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
neo4j.nix
openldap.nix treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
opentsdb.nix
pgbouncer.nix
pgmanage.nix nixos/postgresql: move postStart into separate unit 2025-06-24 15:26:47 +02:00
postgres-websockets.nix treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
postgresql.md treewide: run treefmt with mdcr/nixfmt 2025-07-24 13:52:31 +02:00
postgresql.nix nixos/postgresql: set Restart=always for postgresql.service 2025-07-26 19:11:54 +02:00
postgrest.nix nixos/postgresql: move postStart into separate unit 2025-06-24 15:26:47 +02:00
redis.nix treewide: Format all Nix files 2025-04-01 20:10:43 +02:00
rethinkdb.nix
surrealdb.nix
tigerbeetle.md treewide: run treefmt with mdcr/nixfmt 2025-07-24 13:52:31 +02:00
tigerbeetle.nix
victorialogs.nix treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
victoriametrics.nix treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00