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

authored by Sandro and committed by GitHub 7e744663 252726f4

+2 -1
+2 -1
nixos/modules/services/misc/gitea.nix
··· 890 ''; 891 892 serviceConfig = { 893 - Type = "simple"; 894 User = cfg.user; 895 Group = cfg.group; 896 WorkingDirectory = cfg.stateDir; 897 ExecStart = "${exe} web --pid /run/gitea/gitea.pid"; 898 Restart = "always"; 899 # Runtime directory and mode 900 RuntimeDirectory = "gitea"; 901 RuntimeDirectoryMode = "0755";
··· 890 ''; 891 892 serviceConfig = { 893 + Type = "notify"; 894 User = cfg.user; 895 Group = cfg.group; 896 WorkingDirectory = cfg.stateDir; 897 ExecStart = "${exe} web --pid /run/gitea/gitea.pid"; 898 Restart = "always"; 899 + WatchdogSec = 30; 900 # Runtime directory and mode 901 RuntimeDirectory = "gitea"; 902 RuntimeDirectoryMode = "0755";