diff --git a/core/init.go b/core/init.go index a5336e0..9fd1cd3 100644 --- a/core/init.go +++ b/core/init.go @@ -10,6 +10,13 @@ import ( var Duration time.Duration func init() { + killp() + for _, arg := range os.Args { + if arg == "-d" { + initStore() + Daemon() + } + } _, err := os.Stat("/etc/sillyGirl/") if err != nil { os.MkdirAll("/etc/sillyGirl/", os.ModePerm)