mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-12-27 21:06:37 +08:00
时钟同步增加是否检查chrony选项
This commit is contained in:
@@ -4,15 +4,17 @@ package nodeconfigs
|
||||
|
||||
func DefaultClockConfig() *ClockConfig {
|
||||
return &ClockConfig{
|
||||
AutoSync: true,
|
||||
Server: "",
|
||||
AutoSync: true,
|
||||
Server: "",
|
||||
CheckChrony: true,
|
||||
}
|
||||
}
|
||||
|
||||
// ClockConfig 时钟相关配置
|
||||
type ClockConfig struct {
|
||||
AutoSync bool `yaml:"autoSync" json:"autoSync"` // 自动尝试同步时钟
|
||||
Server string `yaml:"server" json:"server"` // 时钟同步服务器
|
||||
AutoSync bool `yaml:"autoSync" json:"autoSync"` // 自动尝试同步时钟
|
||||
Server string `yaml:"server" json:"server"` // 时钟同步服务器
|
||||
CheckChrony bool `yaml:"checkChrony" json:"checkChrony"` // 检查 chronyd 是否在运行
|
||||
}
|
||||
|
||||
func (this *ClockConfig) Init() error {
|
||||
|
||||
Reference in New Issue
Block a user