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