Scheduling and automatic indexing

Top  Previous  Next

 

To setup Zoom to automatically index your site under Linux you can setup a cron job using the "crontab" command and a text editor. You will first need to make sure that your current indexing configurations are correct, and that you have these settings saved in a (.zcfg) configuration file. Make sure that the saved settings in this file will successfully index your site to your liking and will successfully run unsupervised.

You can list the current scheduled tasks for the current user by running the command "crontab -l".

Add task

To add a task you can use the command "crontab -e", which will launch a text editor where each line represents a scheduled task. The syntax for each line is

1 2 3 4 5 /path/to/command arg1 arg2
 

Where;
1: Minute (0-59)
2: Hours (0-23)
3: Day (0-31)
4: Month (0-12 [12 == December])
5: Day of the week(0-7 [7 or 0 == sunday])
/path/to/command - Script or command name to schedule

To run the Zoom Indexer engine  you need to use  the "-c" and "-autostart" command line parameters and specify a config file. For example, assuming Zoom was installed in the user's home folder in a "zoom" directory, to run Zoom every day at 3am use the command;

0 3 * * * ~/zoom/ZoomEngine -autorun -c "~/zoom/savedconfig.zcfg"

 

If you are using a 64bit install of Linux you should use the ZoomEngine64 executable.

Remove task

To stop or remove a scheduled task, use the "crontab -e" command and delete the ZoomEngine line.

Troubleshooting scheduled tasks

If your scheduled task does not appear to be running correctly, check the system log for CRON or ZoomEngine references;

grep CRON /var/log/syslog (to display all cron related log messages)
grep ZoomEngine /var/log/syslog (to display all ZoomEngine specific log messages)

If Zoom did run, but the configuration is causing issues with indexing, you should analyse a log of what happened in its last scheduled execution. To do so, you must make sure you have enabled logging to file from the "Index log" tab of the Configuration window, for the ZCFG file scheduled (see "Index log" for more information).