Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CheckCmd = cli.Command{ Name: "check", Usage: "Check if uptime is above a limit.", Action: check, Flags: []cli.Flag{ cli.StringFlag{ Name: "uptime-limit", Usage: "Limit above a file will be created. In time.Duration format.", EnvVar: "UC_UPTIME_LIMIT", Value: "24h", }, cli.StringFlag{ Name: "file", Usage: "Path of the file to create.", EnvVar: "UC_FILE_PATH", Value: "/var/run/reboot-required", }, cli.StringFlag{ Name: "interval", Usage: "Interval between 2 checks. In time.Duration format.", EnvVar: "UC_INTERVAL", Value: "5m", }, cli.StringFlag{ Name: "window-start-time", Usage: "Window start hour and minute.", EnvVar: "UC_WINDOW_START", Value: "00:00", }, cli.StringFlag{ Name: "window-end-time", Usage: "Window end hour and minute.", EnvVar: "UC_WINDOW_END", Value: "23:59", }, }, }
CheckCmd start an infinite loop and check uptime every interval.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.