#  _    _          ___           __ _     (R)
# | |  (_)_ _____ / __|___ _ _  / _(_)__ _
# | |__| \ V / -_) (__/ _ \ ' \|  _| / _` |
# |____|_|\_/\___|\___\___/_||_|_| |_\__, |
#                                    |___/
# Copyright (c) 2009-2022 LiveConfig GmbH.
# ----------------------------------------------------------------------------
# /etc/cron.d/liveconfig
# 
# Cron jobs for LiveConfig
# ----------------------------------------------------------------------------

# This job purges all PHP session files from webspace directories which are
# older than the value configured in each subscriptions' php.ini
# (session.gc_maxlifetime) or at least 24 minutes:
12,42 *     * * *     root       /usr/lib/liveconfig/cron.php.sh

# Run AWStats (if installed) every night at 03:32 to create static reports:
32    03    * * *     root       [ ! -d /etc/awstats/liveconfig ] || /usr/lib/liveconfig/cron.awstats.sh

# Remove stale mod_fcgid socket files
20    04    * * *     root       [ ! -d /run/mod_fcgid ] || /usr/bin/find /run/mod_fcgid -type s -mtime +30 -delete
20    04    * * *     root       [ ! -d /var/lib/apache2/fcgid/sock ] || /usr/bin/find /var/lib/apache2/fcgid/sock -type s -mtime +30 -delete

# <EOF>-----------------------------------------------------------------------
