doc: update README with cronjob instructions
- 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
🤖
This commit is contained in:
parent
3bf7fc2255
commit
3d52b21442
1 changed files with 8 additions and 0 deletions
|
@ -18,6 +18,14 @@ See `requirements.txt`
|
||||||
2. Adapt `config.yml.example` to your needs and save it as `config.yml`
|
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
|
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
|
## Parameters
|
||||||
|
|
||||||
See `dc-ops --help`
|
See `dc-ops --help`
|
||||||
|
|
Loading…
Reference in a new issue