User Tools

Site Tools


start:cron

This is an old revision of the document!


PicnicTime.com Cron Jobs

The following cron jobs are running in Nexcess SiteWorx to control the amount of storage space used for our websites:

  • This cron job sends an email if the total size of the root directory is greater than 40GB:
    if [`du -sh /chroot/home/picnicti | awk '{ print $1 }' | cut -d'G' -f1` -gt 40]; then echo "GB used: `du -sh /chroot/home/picnicti | awk '{ print $1 }' | cut -d'G' -f1`" | mail -s "Storage space used" andre@picnictime.com; fi
  • This cron job deletes a folder that contains cached product images:
    rm -rf /chroot/home/picnicti/picnictime.com/html/media/catalog/product/cache/2/*
start/cron.1468971972.txt.gz · Last modified: 2016/07/19 16:46 by andre