tmp update

This commit is contained in:
Aliberk Sandıkçı 2023-07-29 14:00:20 +03:00
parent 66ab03df89
commit 6417fd1afd
Signed by: asandikci
GPG key ID: 25C67A03B5666BC1
2 changed files with 4 additions and 2 deletions

View file

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

View file

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