Unverified Commit 7e744663 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

nixos/gitea: use systemd-notify, use watchdog (#440644)

parents 252726f4 e3a7138a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -890,12 +890,13 @@ in
        '';

      serviceConfig = {
        Type = "simple";
        Type = "notify";
        User = cfg.user;
        Group = cfg.group;
        WorkingDirectory = cfg.stateDir;
        ExecStart = "${exe} web --pid /run/gitea/gitea.pid";
        Restart = "always";
        WatchdogSec = 30;
        # Runtime directory and mode
        RuntimeDirectory = "gitea";
        RuntimeDirectoryMode = "0755";