Advanced, Installation
Kickcron.php has relevant code to make a web call to idesk functions which need to be run periodically and can be found at full-path-to-idesk-install-folder/utils/kickcron.php.
Set this file to be called every 1 minute or 2 minutes or whatever update interval is acceptable in your setup.
Please ensure paths are correctly set for your server in kickcron.php.
What task are run
- Emails are retrieved and processed
- Escalations tasks are performed
- Escalation rules are processed
- Escalation emails are triggered
- AD records are synced
- Breached escalations are cleaned from the database table
- Other maintenence tasks are performed like old log entries
Note on AD Sync
The default value of AD sync interval is set to 24 hours with a fresh install of the desk. This can be changed in Application Settings / Sync AD.
The last-sync-time is maintained across server reboots and the UNIX time is logged in idesk-install-folder/protected/runtime/state.bin in the serialized string "lastAD";i:1428907934
Setting up in Windows
Create a task in Task Manager to invoke php.exe and pass the kickcron.php entry file as argument. Set task to run unattended for example under system account and start at boot - repeat every 1 minute.
In the following example, php.exe is in the xampp folder. Notice path to the kickcron.php file in the following image.
Setting up in Linux
You can use lynx, wget or curl to make a web call to the kickcron.php file. It is usually a good idea to pass the full path of the executable and pass that as an argument to the kickcron.php file. Wget maybe better if lynx is not installed and you are not so keen to install another redundant component.
An example entry to run every 2 minutes:
*/2 * * * * /usr/bin/lynx -dump http://localhost/utils/kickcron.php > /dev/null 2>$1
You can also use wget and is the cron entry with the Idesk linux VM:
*/2 * * * * wget -O - http://localhost/utils/kickcron.php > /dev/null 2>&1
You can also use path-to-php-bin or add a hashbang to run kickcron.php file.