mirror of
https://github.com/YspCoder/clawgo.git
synced 2026-05-06 21:47:30 +08:00
refactor(api): move webui endpoints out of nodes and fix office state updates
This commit is contained in:
12
pkg/api/reload_unix.go
Normal file
12
pkg/api/reload_unix.go
Normal file
@@ -0,0 +1,12 @@
|
||||
//go:build !windows
|
||||
|
||||
package api
|
||||
|
||||
import (
|
||||
"os"
|
||||
"syscall"
|
||||
)
|
||||
|
||||
func requestSelfReloadSignal() error {
|
||||
return syscall.Kill(os.Getpid(), syscall.SIGHUP)
|
||||
}
|
||||
Reference in New Issue
Block a user