mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 02:15:48 +02:00
feat: add pidfile
parameter to support OpenRC
This commit is contained in:
parent
c92b31e903
commit
6b40d02b93
7 changed files with 55 additions and 16 deletions
|
@ -8,10 +8,10 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"code.pfad.fr/risefront"
|
||||
"github.com/0xJacky/Nginx-UI/internal/backup"
|
||||
"github.com/0xJacky/Nginx-UI/internal/nginx"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/jpillora/overseer"
|
||||
"github.com/uozi-tech/cosy"
|
||||
)
|
||||
|
||||
|
@ -123,7 +123,7 @@ func RestoreBackup(c *gin.Context) {
|
|||
go func() {
|
||||
time.Sleep(2 * time.Second)
|
||||
// gracefully restart
|
||||
overseer.Restart()
|
||||
risefront.Restart()
|
||||
}()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue