Skip to content

Roedy13/systemd_watchdog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

systemd_watchdog

Simple c test for a systemd watchdog

You must install libsystemd-dev to use this (apt install libsystemd-dev)

To compile

gcc main.c -lsystemd

To Install Modify the ExecStart in watchdog_test.service file to /path/to/your/a.out

cd /lib/systemd/system
ln -fs /path/to/watchdog_test.service 
sudo systemctl daemon-reload

To run

sudo systemctl start watchdog_test

Monitor the status of the watchdog using journalctl

sudo journalctl -f -u watchdog_test

About

Simple c test for a systemd watchdog

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages