Nothing in crontab

Discussion in 'Installation/Configuration' started by punto, Jul 27, 2006.

  1. punto

    punto New Member

    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
     
  2. TheRudy

    TheRudy ISPConfig Developer ISPConfig Developer

    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..
     
  3. djtremors

    djtremors ISPConfig Developer ISPConfig Developer

    what's in
    PHP:
    ls -/var/spool/cron/
    or

    PHP:
    cat /etc/crontab
     
  4. punto

    punto New Member

    Thankyou for the replies.

    Yes crontab -e was run as root.

    Output of ls -l /var/spool/cron

    [[email protected] ~]# ls -l /var/spool/cron/
    total 0
    -rw------- 1 root root 0 Jul 27 14:34 root


    Output of cat /etc/crontab

    [[email protected] ~]# 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
     
  5. swpr

    swpr New Member

    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
     
  6. falko

    falko Super Moderator ISPConfig Developer

    Log in as root and run
    Code:
    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:
    Code:
    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
     
  7. punto

    punto New Member

    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
     
  8. falko

    falko Super Moderator ISPConfig Developer

    Yes, it doesn't cause problems on your system. :)
    I will check the crontab issue soon.
     
  9. punto

    punto New Member

    No problem, thanks for you help ;)
     

Share This Page