This commit is contained in:
lolouk44 2020-01-29 15:24:09 +00:00
parent a9cb521e66
commit ac91733eab
2 changed files with 1 additions and 17 deletions

View file

@ -1,10 +1,2 @@
set -e
if [ ! -z "$CRON_TAIL" ]
then
# crond running in background and log file reading every second by tail to STDOUT
crond -s /var/spool/cron/crontabs -b -L /var/log/cron/cron.log "$@" && tail -f /var/log/cron/cron.log
else
# crond running in foreground. log files can be retrive from /var/log/cron mount point
crond -s /var/spool/cron/crontabs -f -L /var/log/cron/cron.log "$@"
fi
python3 -u /opt/miscale/Xiaomi_Scale.py