Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[solved] Question about cron service file
#1
Today I start only a single file, vtigercron.sh for background tasks

But there in my installation file README-NewCronServiceSetup.txt with other instructions.

This instructions wil be use only for a new cron services, or I need changed for actually process in background too?
Ranieri
eCRM Web
Reply
#2
you only need to launch one file in the cron: vtigercron.sh
I usually call vtigercron.php directly from the cron and rarely ever use vtigercron.sh, but, in the end it is the same.
Joe
TSolucio
Reply
#3
Ok, thanks.

I can only execute a /vtigercron.php ?
Ranieri
eCRM Web
Reply
#4
Yes, that is what the vtigercron.sh script does. I use something like this directly in the /etc/cron.d/corebos file:


Code:
*/5 * * * *  root cd /var/www/corebos; /usr/bin/php -f vtigercron.php
Joe
TSolucio
Reply
#5
Is really necessary execute this job as root user? I normally use a apache user ( for security reasons .. )
Ranieri
eCRM Web
Reply
#6
Aoache user is fine, in fact, I agree, it is much better than root, the thing is that usually, for security reasons, the apache user doesn't even have shell access so you can't use it to launch the cron. If that is not your case, you can do it with apache.
Joe
TSolucio
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)