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; User = cfg.user;
Group = "gitea"; Group = "gitea";
WorkingDirectory = cfg.stateDir; WorkingDirectory = cfg.stateDir;
ExecStart = "${gitea}/bin/gitea web"; ExecStart = "${gitea}/bin/gitea web --pid /run/gitea/gitea.pid";
Restart = "always"; Restart = "always";
# Runtime directory and mode
RuntimeDirectory = "gitea";
RuntimeDirectoryMode = "0755";
# Filesystem # Filesystem
ProtectHome = true; ProtectHome = true;