Skip to content

zhu-wenjun/watchdog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

watchdog

Import the watchdog package, and invoke the Start() function like this:

+func main() { ... go watchdog.Start() ... }

  1. The system will reboot once the "/dev/watchdog" device is opened and no subsequent data writes to the device in 3 minutes (It depends on your watchdog driver setting).

  2. The watchdog daemon writes a data to "/dev/watchdog" once per minute.

  3. Use "echo V > /dev/watchdog" to stop the watchdog and keep the system from rebooting.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages