fix: 前台运行会退出后台程序的问题
This commit is contained in:
@@ -11,10 +11,12 @@ import (
|
|||||||
func Guardian(output bool) {
|
func Guardian(output bool) {
|
||||||
util.Log.OutPut = output
|
util.Log.OutPut = output
|
||||||
|
|
||||||
go Daemon.DaemonChan()
|
if global.Config.Settings.Daemon.Enable {
|
||||||
|
go Daemon.DaemonChan()
|
||||||
|
|
||||||
if e := Daemon.MarkDaemon(); e != nil {
|
if e := Daemon.MarkDaemon(); e != nil {
|
||||||
util.Log.Fatalln(e)
|
util.Log.Fatalln(e)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var c = make(chan bool)
|
var c = make(chan bool)
|
||||||
|
|||||||
Reference in New Issue
Block a user