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 [2024/08/29 20:13] – external edit 127.0.0.1cron [2025/01/26 22:31] (current) – Adjust for 25.01 moving cron to scripts subdir wrongecho
Line 3: Line 3:
 ITFlow comes with an array of PHP scripts that are meant to be executed automatically using Cron. The operation of scripts via Cron guarantees that actions are carried out autonomously in the background, eliminating the need for a user to be logged in. We strongly recommend configuring cron. ITFlow comes with an array of PHP scripts that are meant to be executed automatically using Cron. The operation of scripts via Cron guarantees that actions are carried out autonomously in the background, eliminating the need for a user to be logged in. We strongly recommend configuring cron.
  
-==== Cron Activation & Key ====+==== Cron Activation ====
  
-For the sole execution of the scripts by Cron, not by an arbitrary user or bot visiting the pages, it is necessary to activate Cron and generate a Cron Key.+  * Sign in to ITFlow with administrative rights. 
 +  * Navigate to **Settings** > **Notifications**: 
 +  * Enable Cron
  
-Sign in to ITFlow with administrative rightsProceed to **Settings** **Notifications**: +== Cron Scripts of v25.01 == 
-  Enable cron +If installed by script after the date above location will now be ''/etc/cron.d/itflow'' 
-  Generate a Cron Key+<code> 
 +0 2 * * * www-data /usr/bin/php /var/www/itflow.example.com/scripts/cron.php 
 +* * * * * www-data /usr/bin/php /var/www/itflow.example.com/scripts/cron_ticket_email_parser.php 
 +* * * * www-data /usr/bin/php /var/www/itflow.example.com/scripts/cron_mail_queue.php 
 +0 3 * * www-data /usr/bin/php /var/www/itflow.example.com/scripts/cron_domain_refresher.php 
 +0 4 * * * www-data /usr/bin/php /var/www/itflow.example.com/scripts/cron_certificate_refresher.php 
 +</code>
  
-== Cron Scripts ==+-- 
 + 
 +== OLD / Cron Scripts ==
 The following scripts should be added to your Cron: The following scripts should be added to your Cron:
   *NOTE: THESE ARE SETUP BY DEFAULT IF YOU INSTALLED ITFLOW USING THE [[installation_script|SCRIPT]]   *NOTE: THESE ARE SETUP BY DEFAULT IF YOU INSTALLED ITFLOW USING THE [[installation_script|SCRIPT]]
  
-  * ''php /full/path/to/**cron.php** **[KEY]**'' -- This should run daily at 2 AM for tasks such as cleanup, auto-closing resolved tickets, alerts, recurring invoices, and more. +  * ''sudo -u www-data php /full/path/to/**cron.php**'' -- This should run daily at 2 AM for tasks such as cleanup, auto-closing resolved tickets, alerts, recurring invoices, and more. 
-  * ''php /full/path/to/**cron_ticket_email_parser.php** **[KEY]**'' -- This should run every minute: it interprets emails and creates/updates tickets +  * ''sudo -u www-data php /full/path/to/**cron_ticket_email_parser.php**'' -- This should run every minute: it interprets emails and creates/updates tickets 
-  * ''php /full/path/to/**cron_mail_queue.php** **[KEY]**'' -- This should run every minute: it's used for in-app email sending +  * ''sudo -u www-data php /full/path/to/**cron_mail_queue.php**'' -- This should run every minute: it's used for in-app email sending 
-  * ''php /full/path/to/**cron_domain_refresher.php** **[KEY]**'' -- This should run every day: each run will update the details of the oldest updated domain +  * ''sudo -u www-data php /full/path/to/**cron_domain_refresher.php**'' -- This should run every day: each run will update the details of the oldest updated domain 
- +  ''sudo -u www-data php /full/path/to/**cron_certificate_refresher.php**'' -- This should run every day: each run will update the details of the oldest updated certificates.
-Please note: Swap [KEY] with your actual Cron key, and don't include the brackets [ ]+
  
-== Example ==+== OLD / Example ==
 <code> <code>
 # /etc/crontab: system-wide crontab # /etc/crontab: system-wide crontab