Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
blacknell committed Feb 15, 2021
1 parent 8622a59 commit 3148a5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

0 comments on commit 3148a5e

Please sign in to comment.