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("- - - - - - - - - - - - - - -")
|
||||||
log.Print("daemon started")
|
log.Print("daemon started")
|
||||||
log.Print("log1")
|
|
||||||
|
|
||||||
for true {
|
for true {
|
||||||
Info()
|
Info()
|
||||||
log.Print("log2")
|
time.Sleep(1000 * time.Second)
|
||||||
time.Sleep(100 * time.Millisecond)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,8 +8,6 @@ import (
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
const ProgramName = "go-daemon"
|
|
||||||
|
|
||||||
func checkExists(path string) (bool, error) {
|
func checkExists(path string) (bool, error) {
|
||||||
_, err := os.Stat(path)
|
_, err := os.Stat(path)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
|
|
Loading…
Reference in a new issue