mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-14 05:14:06 +02:00
13 lines
402 B
Go
13 lines
402 B
Go
package csconfig
|
|
|
|
import log "github.com/sirupsen/logrus"
|
|
|
|
/*daemonization/service related stuff*/
|
|
type CommonCfg struct {
|
|
Daemonize bool
|
|
PidDir string `yaml:"pid_dir"`
|
|
LogMedia string `yaml:"log_media"`
|
|
LogDir string `yaml:"log_dir,omitempty"` //if LogMedia = file
|
|
LogLevel *log.Level `yaml:"log_level"`
|
|
WorkingDir string `yaml:"working_dir,omitempty"` ///var/run
|
|
}
|