From 95d478c29c60c38c17dcaadeda0192979ea0d451 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Tue, 18 Aug 2020 13:21:24 +0200 Subject: change PIDFile default from /var/run/gitea.pid to /run/gitea.pid (#12500) * docs: update heading This section covers more paths than the 3 listed in the heading. * setting: change PIDFile default from /var/run/gitea.pid to /run/gitea.pid On most modern distributions, /var/run is deprecated and only kept for backwards compat according to https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch05s13.html, and is a symlink to `/run/` on modern distributions. Old Distros that still don't have `/run` can update the gitea default as described in from-source.en-us.md to point to the old location. Co-authored-by: Lauris BH Co-authored-by: Lunny Xiao --- modules/setting/setting.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/setting/setting.go') diff --git a/modules/setting/setting.go b/modules/setting/setting.go index c4cbe1dd98..f7edd8e507 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -375,7 +375,7 @@ var ( Cfg *ini.File CustomPath string // Custom directory path CustomConf string - PIDFile = "/var/run/gitea.pid" + PIDFile = "/run/gitea.pid" WritePIDFile bool ProdMode bool RunUser string -- cgit v1.2.3