update log rotator

This commit is contained in:
2026-03-24 17:06:52 +02:00
parent 6f66d14329
commit 8efe7090be
7 changed files with 63 additions and 39 deletions
+1 -2
View File
@@ -36,7 +36,6 @@ type Config struct {
RunPath string `json:"runfile" yaml:"runfile"`
AsDaemon bool `json:"asDaemon" yaml:"asDaemon"`
LogLimit int64 `json:"logLimit" yaml:logLimit`
}
func NewConfig() (*Config, error) {
@@ -45,7 +44,7 @@ func NewConfig() (*Config, error) {
Port: client.DefaultServicePort,
},
AsDaemon: false,
LogLimit: 1024 * 1024 * 10, // 10 Mb
LogLimit: 1024 * 1024 * 10, // 10 Mb
}
hostname, err := os.Hostname()
if err != nil {
+4 -5
View File
@@ -1,10 +1,9 @@
package config
const (
confdirPath = "/home/ziggi/Projects/sys2agent/etc/minilb"
rundirPath = "/home/ziggi/Projects/sys2agent/tmp/run"
logdirPath = "/home/ziggi/Projects/sys2agent/tmp/log"
datadirPath = "/home/ziggi/Projects/sys2agent/tmp/data"
confdirPath = "/home/ziggi/Projects/gserver/etc/minilb"
rundirPath = "/home/ziggi/Projects/gserver/tmp/run"
logdirPath = "/home/ziggi/Projects/gserver/tmp/log"
datadirPath = "/home/ziggi/Projects/gserver/tmp/data"
packageVersion = "0.0.1"
)