Sorry about that, looks like discourse thought that the multiple links to github from a new user is spam. I changed the setting a bit so hopefully now it will work.
Log rotate doesn’t seem to be working on EL7 for versions;
foreman-proxy-1.16.1-1.el7.noarch
foreman-proxy-1.16.2-1.el7.noarch
I tried running /bin/systemctl kill --signal=SIGUSR1 foreman-proxy >/dev/null 2>&1 manually first while the service was running and log size was zero but the log file was not written to.
If I systemctl restart foreman-proxy it will start logging out to /var/log/foreman-proxy/proxy.log. Once log rotate occurs the log remains empty.
When proxy receives this signal, it does not rotate immediately but it marks a flag and it closes the logging file once first log message arrives. Can you verify this behavior?
To me this is the correct behavior. Ideally it would write some extra info message after logs are rotated something like “logs were rotated” but due to synchronization that would be challenging.
I am not sure what you mean with the zero-sized logs. When you see this? Is this some bug in the debug script? Can you compare files from the tarball and files on disk?