From abda2001b80bc71f48cfbdc02a4f8988e5f30a39 Mon Sep 17 00:00:00 2001 From: Lizzy Fleckenstein Date: Wed, 1 Apr 2026 20:36:46 +0200 Subject: init --- README.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 README.md (limited to 'README.md') diff --git a/README.md b/README.md new file mode 100644 index 0000000..1b527a5 --- /dev/null +++ b/README.md @@ -0,0 +1,27 @@ +# watchdog + +Monitor CPU usage by process and report bursts to a logfile. + +## Invocation + +```sh +watchdog [logfile] +``` + +Default logfile is `watchdog.log` in the current directory. + +## Build + +Compile using `make` or `cc watchdog.c -O3 -o watchdog`. + +See [watchdog.c](watchdog.c) for configuration options. + +Install to PREFIX using `make install`. + +## Test watchdog + +```sh +$ watchdog & +$ tail -f watchdog.log +$ cat < /dev/random > /dev/null # in a different shell +``` -- cgit v1.2.3