summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/web.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd/web.go b/cmd/web.go
index 6efadb9419..f0e1b16e7f 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -41,7 +41,7 @@ and it takes care of all the other things for you`,
},
cli.StringFlag{
Name: "pid, P",
- Value: "/var/run/gitea.pid",
+ Value: setting.PIDFile,
Usage: "Custom pid file path",
},
},
@@ -110,7 +110,8 @@ func runWeb(ctx *cli.Context) error {
// Set pid file setting
if ctx.IsSet("pid") {
- setting.CustomPID = ctx.String("pid")
+ setting.PIDFile = ctx.String("pid")
+ setting.WritePIDFile = true
}
// Perform global initialization