nixos/mobilizon: restart mobilizon-postgresql service on-failure
The motivation behind this is that sometimes postgresql signals readiness to systemd, even though it doesn't accept yet connections.
This commit is contained in:
@@ -393,6 +393,7 @@ in
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
User = config.services.postgresql.superUser;
|
||||
Restart = "on-failure";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user