tmp: update go daemon

This commit is contained in:
Aliberk Sandıkçı 2023-07-29 13:30:55 +03:00
parent 30d61c2969
commit 59bf79feee
Signed by: asandikci
GPG key ID: 25C67A03B5666BC1

View file

@ -9,13 +9,13 @@ import (
func main() {
cntxt := &daemon.Context{
PidFileName: "godaemon1.pid",
PidFileName: "/var/godaemon1.pid",
PidFilePerm: 0644,
LogFileName: "godaemon1.log",
LogFileName: "/var/log/godaemon1.log",
LogFilePerm: 0640,
WorkDir: "./",
Umask: 027,
Args: []string{"[go-daemon godaemon1]"},
// Args: []string{"[go-daemon godaemon1]"},
}
d, err := cntxt.Reborn()