voff

command module
v0.0.0-...-b24d43e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2020 License: MIT Imports: 11 Imported by: 0

README

voff

Voff is a tool that kicks a watchdog device as long as no probe fail.

Usage

Create configuration file:

watchdog:
  device: /dev/watchdog
  intervalSeconds: 1
probes:
  - exec:
      command:
        - true
  - exec:
      command:
        - false
    failureThreshold: 10
    periodSeconds: 1

Run voff:

$ voff -config /etc/voff.yaml

Configuration

Voff is configured with a YAML file with two top-level keys:

watchdog
  • device: watchdog device path.
  • intervalSeconds: interval seconds to kick the watchdog.
probes

A list of one or many probes, inspired by Kubernetes container probes, where each probe can have the following keys:

  • exec
    • command: list of command arguments to run, at least one required.
  • failureThreshold: number of failed probes that should result in a failure. Default 1.
  • initialDelaySeconds: number of seconds to wait before running the first probe. Default 0.
  • periodSeconds: number of seconds to wait between each probe.
  • timeoutSeconds: number of seconds to wait for the probe to complete.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL