View Single Post
  #3  
Old 25th July 2011, 07:27
snowfly snowfly is offline
Member
 
Join Date: Jul 2006
Posts: 91
Thanks: 0
Thanked 4 Times in 3 Posts
Default

Hi CSsab,

No I do not mean the ISPConfig cron script.
I am talking about user/client cron scripts.

These are listed under /etc/cron.d/

For example, on my master server I have:
/etc/cron.d/ispc_web26

And on my mirror server I also have:
/etc/cron.d/ispc_web26

And both contain the same (where URL is my PHP script):
*/5 * * * * web26 /usr/bin/wget -q -O /dev/null '<URL>' >/dev/null 2>&1


So the PHP script gets run twice, and I get to emails sent to me, because at the bottom of the PHP script I put a php mail(...) command.

So wanting to know a way to stop user/client cron jobs getting replicated and run on the mirror server.
Reply With Quote