This commit is contained in:
cdle
2021-09-30 21:09:34 +08:00
parent 1a1d312efb
commit 038e78d48c
3 changed files with 20 additions and 3 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ func Daemon() {
panic(err)
}
logs.Info(sillyGirl.Get("name", "傻妞") + "以静默形式运行")
os.WriteFile(pidf, []byte(fmt.Sprintf("%d", proc.Process.Pid)), 0o644)
WriteToFile(pidf, (fmt.Sprintf("%d", proc.Process.Pid)))
os.Exit(0)
}