mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-09 07:24:22 +02:00
Don't create a default pid file (#637)
This commit is contained in:
1 parent
27fcf8d30a
commit
4a1f36c3cc
2 files changed
+3
-5
No files matched your search
+1
-1
@@ -62,7 +62,7 @@ and it takes care of all the other things for you`,
|
||||
},
|
||||
cli.StringFlag{
|
||||
Name: "pid, P",
|
||||
Value: "custom/run/app.pid",
|
||||
Value: "/var/run/gitea.pid",
|
||||
Usage: "Custom pid file path",
|
||||
},
|
||||
},
|
||||
|
||||
@@ -515,12 +515,10 @@ please consider changing to GITEA_CUSTOM`)
|
||||
}
|
||||
}
|
||||
|
||||
if len(CustomPID) == 0 {
|
||||
CustomPID = CustomPath + "/run/app.pid"
|
||||
if len(CustomPID) > 0 {
|
||||
createPIDFile(CustomPID)
|
||||
}
|
||||
|
||||
createPIDFile(CustomPID)
|
||||
|
||||
if len(CustomConf) == 0 {
|
||||
CustomConf = CustomPath + "/conf/app.ini"
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user