Skip to content

Commit 4a1f36c

Browse files
Bwkolunny
authored andcommitted
Don't create a default pid file (#637)
1 parent 27fcf8d commit 4a1f36c

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

cmd/web.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ and it takes care of all the other things for you`,
6262
},
6363
cli.StringFlag{
6464
Name: "pid, P",
65-
Value: "custom/run/app.pid",
65+
Value: "/var/run/gitea.pid",
6666
Usage: "Custom pid file path",
6767
},
6868
},

modules/setting/setting.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -515,12 +515,10 @@ please consider changing to GITEA_CUSTOM`)
515515
}
516516
}
517517

518-
if len(CustomPID) == 0 {
519-
CustomPID = CustomPath + "/run/app.pid"
518+
if len(CustomPID) > 0 {
519+
createPIDFile(CustomPID)
520520
}
521521

522-
createPIDFile(CustomPID)
523-
524522
if len(CustomConf) == 0 {
525523
CustomConf = CustomPath + "/conf/app.ini"
526524
}

0 commit comments

Comments
 (0)