diff --git a/go-daemon/godaemon1.go b/go-daemon/godaemon1.go index f4ad256..2aeef1b 100644 --- a/go-daemon/godaemon1.go +++ b/go-daemon/godaemon1.go @@ -9,9 +9,9 @@ import ( func main() { cntxt := &daemon.Context{ - PidFileName: "/etc/godaemon/godaemon1.pid", + PidFileName: "/etc/godaemon1/godaemon1.pid", PidFilePerm: 0644, - LogFileName: "/etc/godaemon/godaemon1.log", + LogFileName: "/etc/godaemon1/godaemon1.log", LogFilePerm: 0640, WorkDir: "./", Umask: 027, diff --git a/go-daemon/godaemon1.service b/go-daemon/godaemon1.service index c321bd3..a45c212 100644 --- a/go-daemon/godaemon1.service +++ b/go-daemon/godaemon1.service @@ -7,7 +7,7 @@ Type=forking User=root Group=root ExecStart=/usr/bin/godaemon1 -PIDFile=/run/godaemon1.pid +PIDFile=/etc/godaemon1/godaemon1.pid PrivateTmp=false Restart=always