feat: add pidfile parameter to support OpenRC

This commit is contained in:
Hintay 2025-05-08 23:08:51 +09:00
parent c92b31e903
commit 6b40d02b93
No known key found for this signature in database
GPG key ID: 120FC7FF121F2F2D
7 changed files with 55 additions and 16 deletions

View file

@ -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()
}()
}