mirror of
https://github.com/zhaofengli/attic.git
synced 2024-12-14 11:57:30 +00:00
nixos: Depend on network-online.target for Postgres
Co-authored-by: Adam Stephens <adam@valkor.net>
This commit is contained in:
parent
9acfdccfdf
commit
78a3119c6d
1 changed files with 2 additions and 4 deletions
|
@ -200,10 +200,8 @@ in
|
|||
|
||||
systemd.services.atticd = {
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
after = [ "network.target" ] ++ lib.optionals hasLocalPostgresDB [
|
||||
"postgresql.service"
|
||||
"nss-lookup.target"
|
||||
];
|
||||
after = [ "network-online.target" ] ++ lib.optionals hasLocalPostgresDB [ "postgresql.service" ];
|
||||
requires = lib.optionals hasLocalPostgresDB [ "postgresql.service" ];
|
||||
|
||||
serviceConfig = {
|
||||
ExecStart = "${cfg.package}/bin/atticd -f ${checkedConfigFile} --mode ${cfg.mode}";
|
||||
|
|
Loading…
Reference in a new issue