fix(11): adding missing systemd options

Configure unit start rate limiting. Units which are started more than startLimitBurst times within an interval time interval are not permitted to start any more.
https://search.nixos.org/options?channel=unstable&from=0&size=50&sort=relevance&type=packages&query=startLimit
This commit is contained in:
efim 2023-06-27 13:49:20 +00:00
parent 73bd2eba84
commit f37fc0da11
1 changed files with 2 additions and 1 deletions

View File

@ -55,7 +55,8 @@ let
description = "My Java Service";
wantedBy = [ "multi-user.target" ];
after = [ "network.target" ];
startLimitIntervalSec = 30;
startLimitBurst = 10;
serviceConfig = {
ExecStart =
"${pkgs.jdk}/bin/java -jar ${package}/bin/priceGridApp.jar -p ${toString cfg.port} --host ${cfg.host}";