if lockfile -600 -r5 "${files}/cron.lock" >> $log 2>&1
then
run-parts --verbose $topdir/cron.d >> $log 2>&1
+ rm -f "${files}/cron.lock"
else
- echo "couldn't aquire lock file in due time" >> $log
+ echo "couldn't aquire cron lock file in due time" >> $log
fi
-rm -f "${files}/cron.lock"
+date >> $log
+if lockfile -600 -r5 "${files}/changelogs.lock" >> $log 2>&1
+then
+ $topdir/bin/extract_changelogs >> $log 2>&1
+ rm -f "${files}/changelogs.lock"
+else
+ echo "couldn't aquire changelogs lock file in due time" >> $log
+fi
date >> $log