"Logrotate" not working
image | gitlab.itsupportme.by:5005/docker-images/php/8.1-lamp:ubuntu-20 |
hash | sha256:9ffd7b2ca9210a57962f3f633ceb68f8c755da8d87340240c6a118e4b81ec1cb |
schedule /etc/cron.d/logrotate
root@0d6948909b15:/etc# /usr/sbin/logrotate /etc/logrotate.conf
bash: /usr/sbin/logrotate: No such file or directory
root@0d6948909b15:/srv/www# ls -lh /srv/www/var/log/
total 266M
drwxr-xr-x 2 www-data www-data 44 Oct 25 14:33 apache
-rw-r--r-- 1 www-data www-data 0 Oct 25 14:33 cron.log
-rw-r--r-- 1 www-data www-data 2.5K Oct 25 14:33 deploy.log
-rw-rw-r-- 1 www-data www-data 392K Oct 26 04:07 itsm-cron-task.log
-rw-rw-r-- 1 www-data www-data 8.3K Oct 25 18:14 stg.appointment_elg_status_debug.log
-rw-rw-r-- 1 www-data www-data 203K Oct 26 04:06 stg.coverage.log
-rw-rw-r-- 1 www-data www-data 132M Oct 26 04:07 stg.log
-rw-rw-r-- 1 www-data www-data 95M Oct 26 04:07 stg.mi7.log
-rw-rw-r-- 1 www-data www-data 269K Oct 26 04:06 stg.prior_auth.log
-rw-rw-r-- 1 www-data www-data 36M Oct 26 04:07 stg.proxy_mi7.log
root@0d6948909b15:/srv/www# date
Wed Oct 26 04:07:14 EDT 2022
root@0d6948909b15:/srv/www#
Edited by Dzmitry Bannik