path update
This commit is contained in:
parent
57b05d47a9
commit
667b057a19
2 changed files with 3 additions and 3 deletions
|
@ -9,9 +9,9 @@ import (
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
cntxt := &daemon.Context{
|
cntxt := &daemon.Context{
|
||||||
PidFileName: "/etc/godaemon/godaemon1.pid",
|
PidFileName: "/etc/godaemon1/godaemon1.pid",
|
||||||
PidFilePerm: 0644,
|
PidFilePerm: 0644,
|
||||||
LogFileName: "/etc/godaemon/godaemon1.log",
|
LogFileName: "/etc/godaemon1/godaemon1.log",
|
||||||
LogFilePerm: 0640,
|
LogFilePerm: 0640,
|
||||||
WorkDir: "./",
|
WorkDir: "./",
|
||||||
Umask: 027,
|
Umask: 027,
|
||||||
|
|
|
@ -7,7 +7,7 @@ Type=forking
|
||||||
User=root
|
User=root
|
||||||
Group=root
|
Group=root
|
||||||
ExecStart=/usr/bin/godaemon1
|
ExecStart=/usr/bin/godaemon1
|
||||||
PIDFile=/run/godaemon1.pid
|
PIDFile=/etc/godaemon1/godaemon1.pid
|
||||||
|
|
||||||
PrivateTmp=false
|
PrivateTmp=false
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
Loading…
Reference in a new issue