diff --git a/go-daemon/godaemon1.go b/go-daemon/godaemon1.go index 2aeef1b..f51038b 100644 --- a/go-daemon/godaemon1.go +++ b/go-daemon/godaemon1.go @@ -28,12 +28,10 @@ func main() { log.Print("- - - - - - - - - - - - - - -") log.Print("daemon started") - log.Print("log1") for true { Info() - log.Print("log2") - time.Sleep(100 * time.Millisecond) + time.Sleep(1000 * time.Second) } } diff --git a/go-daemon/info.go b/go-daemon/info.go index 6e85c36..ad7e257 100644 --- a/go-daemon/info.go +++ b/go-daemon/info.go @@ -8,8 +8,6 @@ import ( "time" ) -const ProgramName = "go-daemon" - func checkExists(path string) (bool, error) { _, err := os.Stat(path) if err == nil {