How to set cron job every 2 mins for the Generic Agent?

English! place to talk about development, programming and coding
Post Reply
williamrobert1983
Znuny newbie
Posts: 94
Joined: 24 Oct 2013, 11:24
Znuny Version: 3.1.1
Real Name: William
Company: Xchanging

How to set cron job every 2 mins for the Generic Agent?

Post by williamrobert1983 »

Hi all,

We are using generic agent and have to run every 2 mins instead of every 10 mins. But, I changed the settings in the /otrs/var/cron/generic_agent and /otrs/var/cron/generic_agent-database .

Example :
ROOT : /otrs/var/cron/generic_agent
# start generic agent every 20 minutes
*/20 * * * * $HOME/bin/otrs.GenericAgent.pl >> /dev/null

I changed to */2 * * * * $HOME/bin/otrs.GenericAgent.pl >> /dev/null
----------------------------------------------------------------------------------------
ROOT : /otrs/var/cron/generic_agent-database
# start generic agent every 10 minutes
*/10 * * * * $HOME/bin/otrs.GenericAgent.pl -c db >> /dev/null

i changed to */2 * * * * $HOME/bin/otrs.GenericAgent.pl -c db >> /dev/null
------------------------------------------------------------------------------------------

Still generic agent is running every 10 mins instead of 2 mins.

How can we change it?

Please advice me.

Thanks ,
William
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: How to set cron job every 2 mins for the Generic Agent?

Post by jojo »

the database driven generic agent can not be changed
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Post Reply