CoreBOSBB
[solved] Question about cron service file - Printable Version

+- CoreBOSBB (https://discussions.corebos.org)
+-- Forum: Support (https://discussions.corebos.org/forumdisplay.php?fid=17)
+--- Forum: Administrator Support (https://discussions.corebos.org/forumdisplay.php?fid=8)
+--- Thread: [solved] Question about cron service file (/showthread.php?tid=848)



[solved] Question about cron service file - rslemer - 01-15-2018

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?


RE: Question about cron service file - joebordes - 01-15-2018

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.


RE: Question about cron service file - rslemer - 01-15-2018

Ok, thanks.

I can only execute a /vtigercron.php ?


RE: Question about cron service file - joebordes - 01-15-2018

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



RE: Question about cron service file - rslemer - 06-19-2018

Is really necessary execute this job as root user? I normally use a apache user ( for security reasons .. )


RE: Question about cron service file - joebordes - 06-19-2018

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.