From 0099dec0ff49a028f5d569077d297007985f875b Mon Sep 17 00:00:00 2001 From: nxshock Date: Tue, 29 Mar 2022 21:44:16 +0500 Subject: [PATCH] Add on error restart options to README --- README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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