View Full Version : Nothing in crontab
punto
27th July 2006, 07:54
I just installed ISPconfig onto Centos 4.3. I followed the perfect setup and then ran the script with no errors.
I can login to https://mydomain.com:81 and manage the CP, but there are no entries in my crontab file; crontab -e shows an empty file.
I know I can add the entries manually but was wondering if this points to other issue that may be present and why it may have happened?
Thanks in advance
Matt
TheRudy
27th July 2006, 09:05
Did you do crontab -e with normal user or admin user? Normal user should be empty.. Admin's crontab should contain a few lines of ISPC stuff..
djtremors
27th July 2006, 09:05
what's in
ls -l /var/spool/cron/
or
cat /etc/crontab
punto
27th July 2006, 14:24
Thankyou for the replies.
Yes crontab -e was run as root.
Output of ls -l /var/spool/cron
[root@hosting ~]# ls -l /var/spool/cron/
total 0
-rw------- 1 root root 0 Jul 27 14:34 root
Output of cat /etc/crontab
[root@hosting ~]# cat /etc/crontab
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/
# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly
Thanks
Matt
swpr
28th July 2006, 12:44
I have the same issue - ISPConfig 2.2.5 on Fedora Core 5.
Any suggestions as to why this is not set up?
Should I just add the following to /etc/crontab or is there a better way to set it up?
30 0 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/logs.php &> /dev/null
59 23 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/ftp_logs.php &> /dev/null
59 23 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/mail_logs.php &> /dev/null
59 23 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/cleanup.php &> /dev/null
00 4 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/webalizer.php &> /dev/null
0,30 * * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/check_services.php &> /dev/null
and are the following required?
15 3,15 * * * /root/ispconfig/php/php/root/ispconfig/scripts/shell/quota_msg.php &> /dev/null
40 00 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/traffic.php &> /dev/null
05 02 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/backup.php &> /dev/null
falko
28th July 2006, 13:59
I just installed ISPconfig onto Centos 4.3. I followed the perfect setup and then ran the script with no errors.
I can login to https://mydomain.com:81 and manage the CP, but there are no entries in my crontab file; crontab -e shows an empty file.
I know I can add the entries manually but was wondering if this points to other issue that may be present and why it may have happened?
Thanks in advance
Matt
Log in as root and run which crontab What's the output? Also make sure you disabled SELinux when you installed your system.
Anyway, you can run crontab -e and put in these cron jobs:
30 0 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/logs.php &> /dev/null
59 23 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/ftp_logs.php &> /dev/null
59 23 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/mail_logs.php &> /dev/null
59 23 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/cleanup.php &> /dev/null
00 4 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/webalizer.php &> /dev/null
0,30 * * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/check_services.php &> /dev/null
15 3,15 * * * /root/ispconfig/php/php/root/ispconfig/scripts/shell/quota_msg.php &> /dev/null
40 00 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/traffic.php &> /dev/null
05 02 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/backup.php &> /dev/null
punto
30th July 2006, 05:27
Log in as root and run which crontab What's the output? Also make sure you disabled SELinux when you installed your system.
I re-installed base OS and ISPconfig again (wanted to change partitioning structure), still nothing in crontab.
SELinux is disabled.
which crontab yields /usr/bin/crontab
I did notice this line at end of installation:
Connected successfully to MySQL server
no crontab for root
??
I can just add the cron jobs as you suggest, but do you think this points to other issues?
Regards
Matt
falko
31st July 2006, 16:21
I can just add the cron jobs as you suggest
Yes, it doesn't cause problems on your system. :)
I will check the crontab issue soon.
punto
1st August 2006, 01:01
Yes, it doesn't cause problems on your system. :)
I will check the crontab issue soon.
No problem, thanks for you help ;)
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.