tmp: update go daemon
This commit is contained in:
parent
30d61c2969
commit
59bf79feee
1 changed files with 3 additions and 3 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue