nixos/tinc: add reload command

This commit is contained in:
Jörg Thalheim 2020-11-29 13:46:28 +01:00
parent 2864156233
commit 2cdec00dd2
No known key found for this signature in database
GPG key ID: 003F2096411B5F92

View file

@ -168,6 +168,7 @@ in
Type = "simple";
Restart = "always";
RestartSec = "3";
ExecReload = mkIf (versionAtLeast (getVersion data.package) "1.1pre") "${data.package}/bin/tinc -n ${network} reload";
ExecStart = "${data.package}/bin/tincd -D -U tinc.${network} -n ${network} ${optionalString (data.chroot) "-R"} --pidfile /run/tinc.${network}.pid -d ${toString data.debugLevel}";
};
preStart = ''