diff --git a/README.md b/README.md index 040fcc0..12fed7a 100644 --- a/README.md +++ b/README.md @@ -8,13 +8,13 @@ A simple watchdog to monitor and keep alive a process. Your process should updat Install the latest version with ``` -$ composer require blacknell/watchdog +composer require blacknell/watchdog ``` ## Sample code See [example/wrapper.php](https://github.com/blacknell/watchdog/blob/master/example/wrapper.php) ## Usage Run from within crontab at an interval less frequent than the watchdog file update rate. -`0,5,10,15,20,25,30,35,40,45,50,55 * * * * sudo /usr/bin/php /home/pi/heating/watchdog.php > /dev/null 2>&1` +`*/5 * * * * sudo /usr/bin/php /home/pi/heating/watchdog.php > /dev/null 2>&1` ## Logging PSR-3 logging is supported via [monolog/monolog](https://github.com/Seldaek/monolog) by passing an optional `Logger` object to the API constructor. \ No newline at end of file