Skip to content

Commit 5eefeb3

Browse files
committed
nixos/forgejo: leverage systemd-notify support
This feature goes all the way back to v1.20.0 (mid 2023) back when Forgejo was still a soft-fork and simply used the nixos/gitea module. The tl;dr: nixos/gitea enabled it as part of the Gitea 1.20 bump PR, while Forgejo was still at 1.19.4 and did not support this yet, causing Forgejo to get restarted after 90s by systemd in a loop. This, among other things, was part of the reason why Forgejo forked the nixos/gitea module into nixos/forgejo and it since moving independently in nixpkgs. systemd-notify provides more accurate service unit states over the previous service type "simple". Ref: b61919e Ref: 44aee34
1 parent 439e0a2 commit 5eefeb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nixos/modules/services/misc/forgejo.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ in
722722
'';
723723

724724
serviceConfig = {
725-
Type = "simple";
725+
Type = "notify";
726726
User = cfg.user;
727727
Group = cfg.group;
728728
WorkingDirectory = cfg.stateDir;

0 commit comments

Comments
 (0)