P
P
Pavel Grudinkin2016-07-02 01:49:46
linux
Pavel Grudinkin, 2016-07-02 01:49:46

Why doesn't logrotate start automatically?

How to find out why logrotate doesn't work automatically?
I tried different config options, but it seems to be not the case, the current version is:

~/путь_до_проекта/log/production.log {
  su ubuntu ubuntu
  hourly
  size 100M
  missingok
  rotate 15
  compress
  notifempty
  copytruncate
}

With the command sudo logrotate -f /etc/logrotate.d/файл_конфига, everything goes as planned, but nothing happens again, the same is observed with any config option, even without hourly/daily/etc..., for daily didcp -i /etc/cron.daily/logrotate /etc/cron.hourly/

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey, 2016-07-02
@Hunt666

Try specifying the absolute path to the log file.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question