Night Jobs are hanging...

Discussion in 'General' started by Joe-ker, Nov 13, 2005.

  1. Joe-ker

    Joe-ker New Member

    Hi folks,

    after installing ISPconfig I recognised that a script that runs in the night got hanging and loaded the server to 100%

    The script is:


    There at line 100 and 101 you can find the code:

    $fd = fopen("$dist_mail_log.$vhost", "r");

    I dont know why, but this logfile that sould be opened here doesnt exist on my server. Therefor $fd gets a value of FALSE. This means the while loop will be executed forever...

    I solved this by adding an if($fd) and putting the while code into it - but this is not a solution I think... (whatever - this could be added in the next version...)

    Why are there no log files?
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Have you checked in ISPConfig under Management > Server > Settings if the path to your mail logfile is correct?
  3. Joe-ker

    Joe-ker New Member


    it points to /var/log/mail.log

    I just checked again, and the file is there, and also with the correct content from yesterday night to now...

    Also the Traffic statistics for the single sites are correct, so it seems to analyce this log...

Share This Page