After installing vps with debian 7 and isp manager every day at night comes such a chipper in the mail:

/etc/cron.daily/logrotate: run-parts: failed to exec /etc/cron.daily/logrotate: Exec format error run-parts: /etc/cron.daily/logrotate exited with return code 1 

In tasks for the crown there is nothing associated with logrotate, the file /etc/cron.daily/logrotate is empty.

  • because it is empty. Try to delete. - KoVadim

1 answer 1

the error can be reproduced if in the directory passed to the run-parts program as an argument, there is an empty file with executable bits:

 $ touch file $ run-parts . $ chmod +x file $ run-parts . run-parts: failed to exec ./file: Exec format error run-parts: ./file exited with return code 1 

solution: delete this empty file or at least remove the executable bits:

 $ sudo chmod -x /путь/к/файлу 

There is nothing logrotate related to the crown tasks

The scripts from /etc/cron.daily executed by the run-parts program, which is started daily by the crond program due to the presence of the corresponding line in /etc/crontab .

  • Standard cron.daily connects to / etc / crontab - sercxjo
  • @sercxjo, yes, thank you for paying attention to this: I re-read the question and answer, and realized that the second part of the answer is not quite “in topic”. I had to change this second part. - aleksandr barakin