Cron jobs are installed three times

Moderator: crythias

Locked
nmuleski
Znuny newbie
Posts: 22
Joined: 17 May 2013, 20:51
Znuny Version: 3.2.6
Real Name: nathan muleski
Company: Palmer Johnson Power Systems

Cron jobs are installed three times

Post by nmuleski »

I've just setup OTRS 3.2.6 on an Ubuntu Server.

I must have messed something up when I setup the Cron jobs though because they all seem to be running three times.

I went to change my fetch mail time from 10 minutes to 3 minutes. To do this I changed: /var/data/otrs/var/cron/postmaster_mailbox

Then I logged in as the otrs user and ran "Cron.sh stop". I verified that there was no crontab for the otrs user then reconfigured the cron jobs by running "Cron.sh start"

Then when I ran "crontab -l -u otrs" I see all the jobs listed three times. If I run "crontab -l | grep PostMaster" I get this:

Code: Select all

$ crontab -l | grep PostMaster
*/10 * * * *    $HOME/bin/otrs.PostMasterMailbox.pl >> /dev/null
*/10 * * * *    $HOME/bin/otrs.PostMasterMailbox.pl >> /dev/null
*/3 * * * *    $HOME/bin/otrs.PostMasterMailbox.pl >> /dev/null
I tried resetting the jobs again but each time they get installed three times. Here is what my /opt/otrs/bin/cron directory looks like:

Code: Select all

administrator@webserver:/opt/otrs/var/cron$ ls -la
total 108
drwxrwxr-x  2 otrs www-data  4096 May 17 14:40 .
drwxrwxr-x 13 otrs www-data  4096 May 17 15:17 ..
-rw-r--r--  1 root root       365 May 17 14:33 aaa_base
-rw-rw-r--  1 otrs www-data   365 Apr 18 07:08 aaa_base.dist
-rw-r--r--  1 root root       488 May 17 14:35 cache
-rw-rw-r--  1 otrs www-data   488 Apr 18 07:08 cache.dist
-rw-r--r--  1 root root       499 May 17 14:35 fetchmail
-rw-rw-r--  1 otrs www-data   499 Apr 18 07:08 fetchmail.dist
-rw-r--r--  1 root root       629 May 17 14:36 generic_agent
-rw-r--r--  1 root root       440 May 17 14:36 generic_agent-database
-rw-rw-r--  1 otrs www-data   440 Apr 18 07:08 generic_agent-database.dist
-rw-rw-r--  1 otrs www-data   629 Apr 18 07:08 generic_agent.dist
-rw-r--r--  1 root root     10282 May 17 14:30 mycrontab
-rw-r--r--  1 root root       424 May 17 14:36 pending_jobs
-rw-rw-r--  1 otrs www-data   424 Apr 18 07:08 pending_jobs.dist
-rw-r--r--  1 root root       567 May 17 14:36 postmaster
-rw-rw-r--  1 otrs www-data   567 Apr 18 07:08 postmaster.dist
-rw-r--r--  1 root root       434 Jun  6 15:40 postmaster_mailbox
-rw-rw-r--  1 otrs www-data   435 Apr 18 07:08 postmaster_mailbox.dist
-rw-r--r--  1 root root       413 May 17 14:39 rebuild_ticket_index
-rw-rw-r--  1 otrs www-data   413 Apr 18 07:08 rebuild_ticket_index.dist
-rw-r--r--  1 root root       448 May 17 14:39 session
-rw-rw-r--  1 otrs www-data   448 Apr 18 07:08 session.dist
-rw-r--r--  1 root root       433 May 17 14:40 unlock
-rw-rw-r--  1 otrs www-data   433 Apr 18 07:08 unlock.dist
Can somebody help me out? I'm fairly new Linux and very new to OTRS, so sorry if this is something simple.
OTRS 3.2.6
Ubuntu Server 12.4.02
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Cron jobs are installed three times

Post by crythias »

within /opt/otrs/var/cron
grep PostMaster *

Cron.sh will concatenate all files without *.dist (in theory) but if it does include .dist, then remove the *.dist from cron folder
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Locked