k 3 tinc_graphs: add timeout
This commit is contained in:
parent
0b76b1081e
commit
597f9e8597
|
@ -91,6 +91,7 @@ let
|
|||
restartIfChanged = true;
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
TimeoutSec = 300; # we will wait 5 minutes, kill otherwise
|
||||
restart = "always";
|
||||
|
||||
ExecStartPre = pkgs.writeScript "tinc_graphs-init" ''
|
||||
|
@ -103,7 +104,6 @@ let
|
|||
cp -fr "$(${pkgs.tinc_graphs}/bin/tincstats-static-dir)/external/." "${external_dir}"
|
||||
fi
|
||||
'';
|
||||
|
||||
ExecStart = "${pkgs.tinc_graphs}/bin/all-the-graphs";
|
||||
|
||||
ExecStartPost = pkgs.writeScript "tinc_graphs-post" ''
|
||||
|
|
Loading…
Reference in a new issue