logrotate on RH7 runs the post/pre rotate scripts if sharedscripts is specified, even if none of the corresponding logs need rotating. This is different behavior than when sharedscripts is not specified.
Created attachment 4112 [details] a patch that fixes for postrotate only (also fixes a couple other minor things)
This isn't a bug -- this behavior is documented in the man page. If you give me a patch that fixes this for shared pre scripts as well though, I'll apply it as that's a nicer behavior. Running the pre w/o running the post is dirty though.
Created attachment 4407 [details] patch that makes pre/post only run when logs rotated