Sunday last commit
This commit is contained in:
parent
e4ba617fc5
commit
c544c6e3fa
2 changed files with 1 additions and 5 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -8,8 +8,6 @@ import (
|
|||
"time"
|
||||
)
|
||||
|
||||
const ProgramName = "go-daemon"
|
||||
|
||||
func checkExists(path string) (bool, error) {
|
||||
_, err := os.Stat(path)
|
||||
if err == nil {
|
||||
|
|
Loading…
Reference in a new issue