Skip to content

Commit 0e3dec7

Browse files
author
anahan
committed
Add pm.status_listen parsing to phpfpm.ConfigParser
1 parent 5c73f54 commit 0e3dec7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkg/phpfpm/config.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ type Pool struct {
2121
Name string
2222
Listen string
2323
StatusPath string
24+
StatusListen string
2425
SlowlogPath string
2526
RequestSlowlogTimeout int
2627
RequestSlowlogTraceDepth int
@@ -46,6 +47,11 @@ func fillPull(config *Config, iniConfig *ini.File, poolName string) error {
4647
pool.StatusPath = key.String()
4748
}
4849

50+
key, err = section.GetKey("pm.status_listen")
51+
if err == nil {
52+
pool.StatusListen = key.String()
53+
}
54+
4955
key, err = section.GetKey("slowlog")
5056
if err == nil {
5157
pool.SlowlogPath = strings.Replace(key.String(), "$pool", poolName, 1)

0 commit comments

Comments
 (0)