From 5dc64e87ebd2bad216245624c0f1426c96b46dc3 Mon Sep 17 00:00:00 2001 From: Mmx <1624045573@qq.com> Date: Thu, 2 Dec 2021 13:12:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20daemon=E6=A8=A1=E5=BC=8Fconfig=E8=B7=AF?= =?UTF-8?q?=E5=BE=84=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controllers/guardian.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/guardian.go b/controllers/guardian.go index 53d307e..deaa490 100644 --- a/controllers/guardian.go +++ b/controllers/guardian.go @@ -49,7 +49,7 @@ func EnterGuardian() { global.Status.Guardian = true util.Log.Println("[Guardian mode]") if global.Config.Settings.Daemon.Enable || global.Flags.Daemon { - if err := exec.Command(os.Args[0], "-running-daemon").Start(); err != nil { + if err := exec.Command(os.Args[0], "--running-daemon", "--config", global.Flags.Path).Start(); err != nil { util.Log.Fatalln(err) } util.Log.Println("[Daemon mode entered]")