Fix heat purge deleted cron job
The cron job was sending errors to root's mailbox. Errors are now directed to syslog. The job couldn't find heat-manage. Added PATH and included /usr/local/bin where heat-manage is located. Change-Id: I31f28ac741731018d5be7943d0a336c99a909562 Closes-Bug: 1369755
This commit is contained in:
parent
849d1ccaa9
commit
be59bb798a
@ -4,5 +4,7 @@ set -ue
|
||||
# If https://bugs.launchpad.net/heat/+bug/1239377 is ever fixed we can
|
||||
# configure heat to purge automatically and remove this.
|
||||
cat <<EOF > /etc/cron.d/heat
|
||||
30 * * * * heat heat-manage purge_deleted 1
|
||||
PATH=/usr/local/bin:/usr/bin:/sbin:/bin:/usr/sbin
|
||||
MAILTO=""
|
||||
30 * * * * heat heat-manage purge_deleted 1 2>&1 | /usr/bin/logger -t heat-purge-deleted-cron
|
||||
EOF
|
||||
|
Loading…
Reference in New Issue
Block a user