mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-12 02:45:49 +02:00
enhance: nginx control
This commit is contained in:
parent
30f75ff7cd
commit
f7d9f2564f
8 changed files with 131 additions and 69 deletions
|
@ -51,7 +51,7 @@ func FormatNginxConfig(c *gin.Context) {
|
|||
}
|
||||
|
||||
func Status(c *gin.Context) {
|
||||
pidPath := nginx.GetNginxPIDPath()
|
||||
pidPath := nginx.GetPIDPath()
|
||||
|
||||
running := true
|
||||
if fileInfo, err := os.Stat(pidPath); err != nil || fileInfo.Size() == 0 { // fileInfo.Size() == 0 no process id
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue