UNCLASSIFIED - NO CUI

Skip to content

cron support for log rotation

Hello. I'm struggling with how to get log rotation working in this image. It has more to do with UBI than Nginx, but thought I'd get more traction here in this repo.

Although my logs are volume exported, I can't do rotation outside easily because I have to send a USR1 signal to nginx during logration to tell it that there is a new log file to use. If you don't do that, logs just stop working.

With the alpine-based nginx image, I install apk-cron and could fire up logrotate with an /etc/periodic/daily file. Cron runs via some init process.

With ubi, I have no init or systemd. I can install cronie and logrotate, but nothing is running crond. What service manager is available if any? How would it start cron?

Thanks!

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information