how to run a logrotate hourly
问题 I created a program.conf that logrotate my logs hourly in an EC2 instance. the logrotate works well when i force it command (by sudo logrotate program.conf --verbose --force ) but it doesn't run each hour. I tried several solutions by googling this problem like puting my program.conf in /etc/logrotate.d and moving logrotate from cron.dail into cron.hourly. but it doesn't work. Here is my program.conf : /home/user_i/*.log{ hourly missingok dateext rotate 1 compress size 100M sharedscripts