meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
cron [2025/11/06 13:00] – refactor - lots of changes, rm old info, point to the install script cron file so we only need to update one place wrongechocron [2026/08/30 22:45] (current) – clarify steps to enable cron wrongecho
Line 1: Line 1:
 ====== Cron ====== ====== Cron ======
  
-ITFlow includes PHP scripts designed to run automatically via [[https://en.wikipedia.org/wiki/Cron|Cron]], ensuring background tasks execute without user interacton. We strongly recommend configuring Cron.+ITFlow includes PHP script designed to run automatically via [[https://en.wikipedia.org/wiki/Cron|Cron]], ensuring background tasks execute without user interaction. We strongly recommend configuring Cron.
  
  
 ==== Script purposes ==== ==== Script purposes ====
-All Cron scripts are now in the ''/scripts/'' directory. There are several different cron scripts, each with a particular purpose: +All Cron scripts are located in the ''/cron/'' directory. There are several different Cron scripts, each with a particular related purpose. The scheduling of each is managed by ''cron.php''. 
-  * ''cron.php'' - Daily maintenance tasks (cleanup, auto-closing resolved tickets, alerts, recurring invoices, etc.)+  * ''nightly_tasks.php'' - Daily maintenance tasks (cleanup, auto-closing resolved tickets, alerts, recurring invoices, etc.)
   * ''mail_queue.php'' - Sends e-mails (SMTP)   * ''mail_queue.php'' - Sends e-mails (SMTP)
   * ''ticket_email_parser.php'' - Reads e-mails and creates/updates tickets (IMAP)   * ''ticket_email_parser.php'' - Reads e-mails and creates/updates tickets (IMAP)
Line 16: Line 16:
  
 To setup the scheduled tasks, copy the [[https://github.com/itflow-org/itflow-install-script/blob/main/cron.d-itflow|provided cron.d-itflow file]] to your system's cron directory (e.g. ''/etc/cron.d/itflow''). To setup the scheduled tasks, copy the [[https://github.com/itflow-org/itflow-install-script/blob/main/cron.d-itflow|provided cron.d-itflow file]] to your system's cron directory (e.g. ''/etc/cron.d/itflow'').
- 
-//NB: If installed using the automated script after v25.10, this will have been done for you.// 
  
  
Line 24: Line 22:
  
   * Sign in to ITFlow with administrative rights.   * Sign in to ITFlow with administrative rights.
-  * Navigate to **Settings** > **Notifications**+  * Navigate to **Settings** > **Cron**
   * Enable Cron   * Enable Cron
 +
 +{{::cron_switched_off.png?direct&900 |}}