Hello I added cron in ISPConfig 3. In /etc/cron.d is file with: Code: MAILTO='' * * * * * web9 /usr/bin/wget -q -O /dev/null 'http://domain.com/test/cron.php' >/dev/null 2>&1 In logs I have a error: Code: Feb 13 19:12:27 s /usr/sbin/cron[3709]: (CRON) INFO (pidfile fd = 3) Feb 13 19:12:27 s /usr/sbin/cron[3710]: (CRON) STARTUP (fork ok) Feb 13 19:12:27 s cron[3710]: Error: bad minute; while reading /etc/cron.d/ispc_web9 Feb 13 19:12:27 s /usr/sbin/cron[3710]: (*system*ispc_web9) ERROR (Syntax error, this crontab file will be ignored) Feb 13 19:12:27 s /usr/sbin/cron[3710]: (CRON) INFO (Running @reboot jobs) I add # befor MAILTO='' and I dont have a errors but now in logs i have: Code: Feb 13 19:47:01 s /USR/SBIN/CRON[5730]: (web9) CMD (/usr/bin/wget -q -O /dev/null 'http://domain.com/test/cron.php' >/dev/null 2>&1^M) Feb 13 19:47:01 s /USR/SBIN/CRON[5729]: (CRON) error (grandchild #5730 failed with exit status 1)
Thats ok. Which ISPConfig version do you use? You seem to have edited the crontab file with a windows editor which added a windows linebreak to the file, thats most likely the reasonf or the second error message that you got after editing.
ISPConfig 3.0.3.2 Dont edit in Windows. Now i delete this crontab and add again. In logs from rsyslog I have: Code: Feb 13 20:30:01 s /USR/SBIN/CRON[5538]: (web9) CMD (/usr/bin/wget -q -O /dev/null 'http://inz.isedo.pl/test/cron.php' >/dev/null 2>&1) Feb 13 20:30:01 s /USR/SBIN/CRON[5537]: (CRON) error (grandchild #5538 failed with exit status 1) Feb 13 20:30:01 s /USR/SBIN/CRON[5540]: (getmail) CMD (/usr/local/bin/run-getmail.sh > /dev/null 2>> /var/log/ispconfig/cron.log) Feb 13 20:30:01 s /USR/SBIN/CRON[5539]: (CRON) error (grandchild #5540 failed with exit status 1) Feb 13 20:30:01 s /USR/SBIN/CRON[5544]: (root) CMD (/usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log) Feb 13 20:30:01 s /USR/SBIN/CRON[5542]: (root) CMD (cd /var/www/staty.isedo.pl/web/scripts/ && ./run_hlstats start) Feb 13 20:30:01 s /USR/SBIN/CRON[5541]: (CRON) error (grandchild #5542 failed with exit status 1) Same error.
Your ispconfig version is quite olf, you should update to a current ispconfig releease and check if it works then.
I update to 3.0.4.3 now. I add new crontab, but this same error: Code: Feb 14 13:22:01 s /USR/SBIN/CRON[21615]: (web9) CMD (/usr/bin/wget -q -O /dev/null 'http://inz.isedo.pl/test/cron.php' >/dev/null 2>&1^I#inz.isedo.pl) Feb 14 13:22:01 s /USR/SBIN/CRON[21614]: (CRON) error (grandchild #21615 failed with exit status 1) Feb 14 13:22:01 s /USR/SBIN/CRON[21617]: (root) CMD (/usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log)
The crontab of a user and cronjobs in cron.d are different things, so its normal that you get a message that no cronjobs are defined in the crontab of that user.