From 497d334c141e34f4c6851f9176200912677d77fc Mon Sep 17 00:00:00 2001 From: Nikolay Amiantov Date: Sat, 20 Nov 2021 23:52:50 +0300 Subject: [PATCH 1/2] youtrack service: restart on failure --- nixos/modules/services/web-apps/youtrack.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/services/web-apps/youtrack.nix b/nixos/modules/services/web-apps/youtrack.nix index 7a70ae6cd523..b83265ffeab6 100644 --- a/nixos/modules/services/web-apps/youtrack.nix +++ b/nixos/modules/services/web-apps/youtrack.nix @@ -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}''; }; }; From 3b6a6505f1b1a8630cc2c6758ecb96c29d534089 Mon Sep 17 00:00:00 2001 From: Nikolay Amiantov Date: Sun, 21 Nov 2021 01:25:51 +0300 Subject: [PATCH 2/2] youtrack: 2021.1.13597 -> 2021.4.35970 Log4j vulnerability fix, move to JDK 17. --- pkgs/servers/jetbrains/youtrack.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/servers/jetbrains/youtrack.nix b/pkgs/servers/jetbrains/youtrack.nix index ac144f166063..07de22e41acf 100644 --- a/pkgs/servers/jetbrains/youtrack.nix +++ b/pkgs/servers/jetbrains/youtrack.nix @@ -1,12 +1,12 @@ -{ lib, stdenv, fetchurl, makeWrapper, jdk11, gawk }: +{ lib, stdenv, fetchurl, makeWrapper, jdk17, gawk }: stdenv.mkDerivation rec { pname = "youtrack"; - version = "2021.1.13597"; + version = "2021.4.35970"; jar = fetchurl { url = "https://download.jetbrains.com/charisma/${pname}-${version}.jar"; - sha256 = "0lc0ra95ix5bs1spfjnx5akh8jm754v8lc3yja8dc438zi221qhh"; + sha256 = "sha256-HB515TS0XXEAiT463nVHP/naeoF7nmeB+6EK0NJ+5c0="; }; nativeBuildInputs = [ makeWrapper ]; @@ -15,10 +15,10 @@ stdenv.mkDerivation rec { installPhase = '' runHook preInstall - makeWrapper ${jdk11}/bin/java $out/bin/youtrack \ + makeWrapper ${jdk17}/bin/java $out/bin/youtrack \ --add-flags "\$YOUTRACK_JVM_OPTS -jar $jar" \ --prefix PATH : "${lib.makeBinPath [ gawk ]}" \ - --set JRE_HOME ${jdk11} + --set JRE_HOME ${jdk17} runHook postInstall '';