mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-25 17:55:21 +00:00
nixos/syncthing: use requires instead of requisite for syncthing-init
Requisite= races during nixos-rebuild switch, syncthing-init can be started before syncthing.service and then fails with result 'dependency'. Requires= pulls syncthing.service into the same transaction, so After= can order the jobs correctly.
This commit is contained in:
@@ -1049,7 +1049,7 @@ in
|
||||
};
|
||||
syncthing-init = lib.mkIf (cleanedConfig != { }) {
|
||||
description = "Syncthing configuration updater";
|
||||
requisite = [ "syncthing.service" ];
|
||||
requires = [ "syncthing.service" ];
|
||||
after = [ "syncthing.service" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user