youtrack service: restart on failure

This commit is contained in:
Nikolay Amiantov 2021-11-20 23:52:50 +03:00
parent e55d12da43
commit 497d334c14

View File

@ -128,6 +128,7 @@ in
Type = "simple";
User = "youtrack";
Group = "youtrack";
Restart = "on-failure";
ExecStart = ''${cfg.package}/bin/youtrack --J-Xmx${cfg.maxMemory} --J-XX:MaxMetaspaceSize=${cfg.maxMetaspaceSize} ${cfg.jvmOpts} ${cfg.address}:${toString cfg.port}'';
};
};