nixos/gitea: enable pid file

This commit is contained in:
Izorkin 2020-07-31 00:20:27 +03:00
parent 4e68da6337
commit 1a0e633c60

View file

@ -448,8 +448,11 @@ in
User = cfg.user;
Group = "gitea";
WorkingDirectory = cfg.stateDir;
ExecStart = "${gitea}/bin/gitea web";
ExecStart = "${gitea}/bin/gitea web --pid /run/gitea/gitea.pid";
Restart = "always";
# Runtime directory and mode
RuntimeDirectory = "gitea";
RuntimeDirectoryMode = "0755";
# Filesystem
ProtectHome = true;