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() {
|
func main() {
|
||||||
cntxt := &daemon.Context{
|
cntxt := &daemon.Context{
|
||||||
PidFileName: "godaemon1.pid",
|
PidFileName: "/run/godaemon1.pid",
|
||||||
PidFilePerm: 0644,
|
PidFilePerm: 0644,
|
||||||
LogFileName: "godaemon1.log",
|
LogFileName: "/var/log/godaemon1.log",
|
||||||
LogFilePerm: 0640,
|
LogFilePerm: 0640,
|
||||||
WorkDir: "./etc/godaemon1/",
|
WorkDir: "./",
|
||||||
Umask: 027,
|
Umask: 027,
|
||||||
// Args: []string{"[go-daemon godaemon1]"},
|
// Args: []string{"[go-daemon godaemon1]"},
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,7 @@ Type=forking
|
||||||
User=root
|
User=root
|
||||||
Group=root
|
Group=root
|
||||||
ExecStart=/usr/bin/godaemon1
|
ExecStart=/usr/bin/godaemon1
|
||||||
PIDFile=/etc/godaemon/godaemon1.pid
|
PIDFile=/run/godaemon1.pid
|
||||||
|
|
||||||
KillMode=none
|
KillMode=none
|
||||||
PrivateTmp=false
|
PrivateTmp=false
|
||||||
|
|
Loading…
Reference in a new issue