Skip to content
Snippets Groups Projects
Commit e58c094a authored by Josef Němec's avatar Josef Němec
Browse files

Cron jobs are configurable from env

parent fa688210
No related branches found
No related tags found
1 merge request!10Cron jobs are configurable from env
...@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ...@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased] ## [Unreleased]
## [1.3.3] - 2023-10-25
### Fixed
- Env (vars) are made accessible to cronjobs
## [1.3.2] - 2023-09-05 ## [1.3.2] - 2023-09-05
### Fixed ### Fixed
- diskmon: change metric format - diskmon: change metric format
......
...@@ -44,5 +44,8 @@ awk '{$1=" ";print}' "${CMG_BASE_DIR}/custom-metrics-generator.conf.env" ...@@ -44,5 +44,8 @@ awk '{$1=" ";print}' "${CMG_BASE_DIR}/custom-metrics-generator.conf.env"
tail -F --max-unchanged-stats=10 ${CMG_STDOUT_LOG} & tail -F --max-unchanged-stats=10 ${CMG_STDOUT_LOG} &
tail -F --max-unchanged-stats=10 ${CMG_STDERR_LOG} 1>&2 & tail -F --max-unchanged-stats=10 ${CMG_STDERR_LOG} 1>&2 &
# Make env accessible to cron jobs (enables cron job config)
env >> /etc/environment
# schedule periodic actions with cron # schedule periodic actions with cron
exec crond -n exec crond -n
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment