You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and a file /root/monitor-update.sh (which should probably be renamed to update-toolkit.sh or similar) containing:
/root/update-everything.sh > /root/update_everything.log 2>&1
if [[ $? -ne 0 ]]; then
/usr/bin/mailx -s "Crontab error" anemailaddresshere@example.com <<EndOfMail
It looks like there was a problem with the update_everything script at
`date`
tail /root/update_everything.log
@`tail /root/update_everything.log`
@
========
tail /var/log/chef/solo.log
@`tail /var/log/chef/solo.log`
@
========
That's all for now. Good luck.
EndOfMail
fi
exit 0
and which runs a script /root/update-everything.sh
There is currently a manually-created cron job
7 * * * * /bin/bash /root/monitor-update.sh
and a file /root/monitor-update.sh (which should probably be renamed to update-toolkit.sh or similar) containing:
and which runs a script /root/update-everything.sh
It would be good if the setup of all this could be put into the main chef installation (and ideally integrated as a single script perhaps?).
The text was updated successfully, but these errors were encountered: