first commit

This commit is contained in:
ytc1012
2025-11-18 18:08:48 +08:00
commit de90ad79ea
162 changed files with 28098 additions and 0 deletions

22
config/reload_unix.go Normal file
View File

@@ -0,0 +1,22 @@
// +build !windows,!plan9
package config
import (
"os"
"os/signal"
"syscall"
)
func signalReload() {
ch := make(chan os.Signal, 1)
signal.Notify(ch, syscall.SIGUSR1)
for {
sig := <-ch
switch sig {
case syscall.SIGUSR1:
ReloadConfigFile()
}
}
}