tmp
This commit is contained in:
parent
779f0bf67f
commit
5590780bde
2 changed files with 4 additions and 4 deletions
|
@ -9,11 +9,11 @@ import (
|
|||
|
||||
func main() {
|
||||
cntxt := &daemon.Context{
|
||||
PidFileName: "godaemon1.pid",
|
||||
PidFileName: "/run/godaemon1.pid",
|
||||
PidFilePerm: 0644,
|
||||
LogFileName: "godaemon1.log",
|
||||
LogFileName: "/var/log/godaemon1.log",
|
||||
LogFilePerm: 0640,
|
||||
WorkDir: "./etc/godaemon1/",
|
||||
WorkDir: "./",
|
||||
Umask: 027,
|
||||
// Args: []string{"[go-daemon godaemon1]"},
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ Type=forking
|
|||
User=root
|
||||
Group=root
|
||||
ExecStart=/usr/bin/godaemon1
|
||||
PIDFile=/etc/godaemon/godaemon1.pid
|
||||
PIDFile=/run/godaemon1.pid
|
||||
|
||||
KillMode=none
|
||||
PrivateTmp=false
|
||||
|
|
Loading…
Reference in a new issue