tmp update
This commit is contained in:
parent
66ab03df89
commit
6417fd1afd
2 changed files with 4 additions and 2 deletions
|
@ -9,9 +9,9 @@ import (
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
cntxt := &daemon.Context{
|
cntxt := &daemon.Context{
|
||||||
PidFileName: "godaemon1.pid",
|
PidFileName: "./etc/godaemon/godaemon1.pid",
|
||||||
PidFilePerm: 0644,
|
PidFilePerm: 0644,
|
||||||
LogFileName: "godaemon1.log",
|
LogFileName: "./etc/godaemon/godaemon1.log",
|
||||||
LogFilePerm: 0640,
|
LogFilePerm: 0640,
|
||||||
WorkDir: "./etc/godaemon1/",
|
WorkDir: "./etc/godaemon1/",
|
||||||
Umask: 027,
|
Umask: 027,
|
||||||
|
|
|
@ -13,6 +13,8 @@ KillMode=none
|
||||||
PrivateTmp=false
|
PrivateTmp=false
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
||||||
|
WorkDir=/etc/godaemon/
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
Alias=godaemon1.service
|
Alias=godaemon1.service
|
Loading…
Reference in a new issue