From 3d52b214425b636b7cf508fdbb2e47c3a54b67b6 Mon Sep 17 00:00:00 2001 From: Sebastian Mark Date: Fri, 5 Jan 2024 22:13:36 +0100 Subject: [PATCH] doc: update README with cronjob instructions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - add section about recommended crontab usage - provide example of how to set up cron job for dc-ops - remind users to set up logrotate for the log file 🤖 --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 8803808..1c879b2 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,14 @@ See `requirements.txt` 2. Adapt `config.yml.example` to your needs and save it as `config.yml` 3. Run `dc-ops` from the shell or from a cron job +### Cron + +Recommended crontab usage: + +`*/15 * * * * python3 /opt/dc-ops/dc-ops 2>&1 | ts "\%FT\%H:\%M:\%S" >>/var/log/dc-ops.log` + +(do not forget logrotate) + ## Parameters See `dc-ops --help`