diff options
author | Christian Kögler <ck3d@gmx.de> | 2022-09-11 13:24:51 +0200 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2022-09-11 16:21:07 +0200 |
commit | 11bafe6b5b0645514d310cfc540dbce18bdd6939 (patch) | |
tree | 893b69e6392a02f5c92fa27c26f4a03b62eac584 /nixos | |
parent | 69063d79d3aa26ff552018b476f7e4d78490f959 (diff) |
nixos/syncthing: remove exit code 2 from exit status success
Fix #181713
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/networking/syncthing.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/syncthing.nix b/nixos/modules/services/networking/syncthing.nix index 16ed34515c678..0876007a6e732 100644 --- a/nixos/modules/services/networking/syncthing.nix +++ b/nixos/modules/services/networking/syncthing.nix @@ -529,6 +529,8 @@ in { }; systemd.services = { + # upstream reference: + # https://github.com/syncthing/syncthing/blob/main/etc/linux-systemd/system/syncthing%40.service syncthing = mkIf cfg.systemService { description = "Syncthing service"; after = [ "network.target" ]; @@ -540,7 +542,7 @@ in { wantedBy = [ "multi-user.target" ]; serviceConfig = { Restart = "on-failure"; - SuccessExitStatus = "2 3 4"; + SuccessExitStatus = "3 4"; RestartForceExitStatus="3 4"; User = cfg.user; Group = cfg.group; |