This commit is contained in:
Aliberk Sandıkçı 2023-07-29 14:07:24 +03:00
parent 779f0bf67f
commit 5590780bde
Signed by: asandikci
GPG key ID: 25C67A03B5666BC1
2 changed files with 4 additions and 4 deletions

View file

@ -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]"},
}

View file

@ -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