Skip to main content
Version: 2.0.13

System Cron Jobs Explained

Cron jobs used by OpenPanel are configured in the /etc/cron.d/openpanel file and should not be edited manually. Schedules and logging can be changed from OpenAdmin > Server > Scheduled Actions, and the whole file is replaced with the default one when running opencli update --cron.

Each job logs a line to /var/log/openpanel/admin/cron.log when it runs.

If you need to customize or add system cron jobs, use the root user's crontab.

docker-collect_stats --all​

Command opencli docker-collect_stats --all collects the container stats for all users. This data is visible to end-users from the Resource Usage page, and to Administrators from the Users > single user page.

user-quota​

Command opencli user-quota generates the disk and inodes usage report for all users and saves it to /etc/openpanel/openpanel/quota_report.json.

domains-stats​

Command opencli domains-stats parses (Caddy) access logs for all active users and their domains.

websites-pagespeed --all​

Command opencli websites-pagespeed --all collects Google PageSpeed data for all websites on the server. This data is visible to end-users from Site Manager and WP Manager pages.

If a user has configured PageSpeed API keys, those will be used automatically for all their domains.

websites-vulnerability --all​

Command opencli websites-vulnerability --all scans all WordPress websites on the server for known vulnerabilities in their plugins and themes.

files-calculate_resellers_storage​

Command opencli files-calculate_resellers_storage calculates the total disk usage of each reseller's users and saves it to the reseller's limits file /etc/openpanel/openadmin/resellers/<reseller>.json.

update​

Command opencli update checks for OpenPanel updates and performs them if autopatch or autoupdate are enabled.

  • Default schedule: daily at 00:15 (15 0 * * *)
  • Documentation: opencli update

ftp-users​

Command opencli ftp-users recreates the FTP users file that displays users in OpenAdmin interface.

email-server pflogsumm​

Command opencli email-server pflogsumm generates an HTML email summary report, visible in OpenAdmin > Emails > Summary Reports.

files-purge_trash​

Command opencli files-purge_trash purges FileManager Trash folders for all users, based on the autopurge_trash setting retention.

waf update​

Command opencli waf update updates the default OWASP CRS WAF rules. Update history can be viewed with: opencli waf update log.

  • Default schedule: monthly on the 1st at 00:00 (0 0 1 * *)
  • Documentation: opencli waf update

backup​

Command opencli backup backs up the OpenPanel and OpenAdmin system configuration. User data (website files, databases, mailboxes) is not included. Runs can be viewed from OpenAdmin > Backups > System > Runs.

  • Default schedule: weekly on Sunday at 01:00 (0 1 * * 0)
  • Documentation: opencli backup

files-malware_scan --all​

Command opencli files-malware_scan --all scans website files of all users with ClamAV and quarantines any infected file found. Requires ClamAV to be enabled on the server.

docker-backup​

Command opencli docker-backup executes a backup for all users' containers. This is disabled by default, as each end-user can then schedule and manage their own backups from OpenPanel UI.

sentinel​

Command opencli sentinel checks services, resource usage, traffic, logins and DNS, and sends alerts to OpenAdmin > Notifications (and email/webhook). Notifications for issues that are resolved on a later run are marked as read.

  • Default schedule: every 5 minutes (*/5 * * * *)
  • Documentation: opencli sentinel

sentinel --report​

Command opencli sentinel --report sends the daily usage report to the Administrator email address.

  • Default schedule: daily at 11:45 (45 11 * * *)
  • Documentation: opencli sentinel

sentinel --startup​

Command opencli sentinel --startup runs after a server reboot: it prepares the Redis temporary directory, starts stopped containers for root and all users, and sends the reboot notification.