mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 21:40:12 +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.
(cherry picked from commit 00031e20b1)
This commit is contained in:
committed by
github-actions[bot]
parent
8029b6c369
commit
f341cd4a64
@@ -1044,7 +1044,7 @@ in
|
||||
};
|
||||
syncthing-init = 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