logrotate service error: read-only filesystem

Original link: https://www.iots.vip/post/logrotate-service-read-only-filesystem.html

wechatpay.png

A server is configured with logrotate to cut tomcat logs. It is normal to execute logrotate /etc/logrotate.conf manually, but the status of logrotate.service triggered by systemd timer is failure, and you can see the error by manually executing systemctl status logrotate.service Message: logrotate[2870734]: error: error opening /usr/local/tomcat/logs/catalina.out: Read-only file system

This article is reprinted from: https://www.iots.vip/post/logrotate-service-read-only-filesystem.html
This site is for inclusion only, and the copyright belongs to the original author.

Leave a Comment