diff --git a/README.md b/README.md index f6d87ce..22f9572 100644 --- a/README.md +++ b/README.md @@ -7,9 +7,12 @@ 1. Create `gron.d` directory 2. Create job config in `jobs.d/job1.conf` ([TOML](https://en.wikipedia.org/wiki/TOML) format): ```toml - Cron = "* * * * *" # cron instructions - Command = "echo Hello" # command to execute - Description = "print Hello every minute" # job description + Cron = "* * * * *" # cron instructions + Command = "echo Hello" # command to execute + Description = "print Hello every minute" # job description + NumberOfRestartAttemts = 3 # number of restart attemts + RestartSec = 5 # the time to sleep before restarting a job (seconds) + RestartRule = "on-error" # Configures whether the job shall be restarted when the job process exits ``` 3. Launch `gron` binary 4. HTTP interface available on http://127.0.0.1:9876