Skip to content
This repository has been archived by the owner on Jul 31, 2024. It is now read-only.

Commit

Permalink
Changes crontab value from '*/1 * * * *' to '0 * * * * *` to fix stac…
Browse files Browse the repository at this point in the history
…k overflow.

- The previously declared */1 on the minute cron makes the cronjob run every minute which is not what is expected when setting 'hour'.

Correct missing 0 on minute crontab.

Corrects typo in cron timer.
  • Loading branch information
jeremyzahner committed Sep 8, 2016
1 parent d8487ed commit 4b3ccbf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Changelog

**latest**
- Fixing wrong declaration of cron "hour" value.

**1.5.2**
- Upgrade toran proxy to version 1.5.2
Expand Down
2 changes: 1 addition & 1 deletion scripts/install/toran.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ elif [ "${TORAN_CRON_TIMER}" == "fifteen" ]; then
elif [ "${TORAN_CRON_TIMER}" == "half" ]; then
CRON_TIMER="*/30 * * * *"
elif [ "${TORAN_CRON_TIMER}" == "hour" ]; then
CRON_TIMER="*/1 * * * *"
CRON_TIMER="0 * * * *"
elif [ "${TORAN_CRON_TIMER}" == "daily" ]; then
read CRON_TIMER_HOUR CRON_TIMER_MIN <<< ${TORAN_CRON_TIMER_DAILY_TIME//[:]/ }
CRON_TIMER="$CRON_TIMER_MIN $CRON_TIMER_HOUR * * * *"
Expand Down

0 comments on commit 4b3ccbf

Please sign in to comment.