diff options
author | Bo-Yi Wu <appleboy.tw@gmail.com> | 2017-01-09 19:54:57 +0800 |
---|---|---|
committer | Bo-Yi Wu <appleboy.tw@gmail.com> | 2017-01-09 19:54:57 +0800 |
commit | 9f575986d8021cfab87d1dd664517d4fbd4ea58a (patch) | |
tree | 4530f2e91b3fe7024b5e542bf9cb26611664ca07 /cmd/web.go | |
parent | f4feeecc3af089a105c9a1ad976a78cd6856b407 (diff) | |
download | gitea-9f575986d8021cfab87d1dd664517d4fbd4ea58a.tar.gz gitea-9f575986d8021cfab87d1dd664517d4fbd4ea58a.zip |
feat: support pid file.
Diffstat (limited to 'cmd/web.go')
-rw-r--r-- | cmd/web.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cmd/web.go b/cmd/web.go index bbf386d43f..e698510aa5 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -60,6 +60,11 @@ and it takes care of all the other things for you`, Value: "custom/conf/app.ini", Usage: "Custom configuration file path", }, + cli.StringFlag{ + Name: "pid, P", + Value: "custom/run/app.pid", + Usage: "Custom pid file path", + }, }, } @@ -156,6 +161,11 @@ func runWeb(ctx *cli.Context) error { if ctx.IsSet("config") { setting.CustomConf = ctx.String("config") } + + if ctx.IsSet("pid") { + setting.CustomPID = ctx.String("pid") + } + routers.GlobalInit() m := newMacaron() |