aboutsummaryrefslogtreecommitdiffstats
path: root/modules/setting
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2020-08-18 13:21:24 +0200
committerGitHub <noreply@github.com>2020-08-18 14:21:24 +0300
commit95d478c29c60c38c17dcaadeda0192979ea0d451 (patch)
tree96c95cca19d72c4ace536fe917803cc00b4b6587 /modules/setting
parent87fbb54abbdc6143a840fa70f12157bf0e8b9d94 (diff)
downloadgitea-95d478c29c60c38c17dcaadeda0192979ea0d451.tar.gz
gitea-95d478c29c60c38c17dcaadeda0192979ea0d451.zip
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 <lauris@nix.lv> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'modules/setting')
-rw-r--r--modules/setting/setting.go2
1 files changed, 1 insertions, 1 deletions
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