Skip to content

Commit 95d478c

Browse files
floklilafrikslunny
authored
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 <[email protected]> Co-authored-by: Lunny Xiao <[email protected]>
1 parent 87fbb54 commit 95d478c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/content/doc/installation/from-source.en-us.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ launched manually from command line, it can be killed by pressing `Ctrl + C`.
137137
./gitea web
138138
```
139139

140-
## Changing the default CustomPath, CustomConf and AppWorkPath
140+
## Changing default paths
141141

142142
Gitea will search for a number of things from the `CustomPath`. By default this is
143143
the `custom/` directory in the current working directory when running Gitea. It will also

modules/setting/setting.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ var (
375375
Cfg *ini.File
376376
CustomPath string // Custom directory path
377377
CustomConf string
378-
PIDFile = "/var/run/gitea.pid"
378+
PIDFile = "/run/gitea.pid"
379379
WritePIDFile bool
380380
ProdMode bool
381381
RunUser string

0 commit comments

Comments
 (0)