Logrotate error

in the rotation configuration for the virtual site it restarts apache like this service httpd graceful which when passed to systemctl results in an error. It looks like systemd is still restarting apache, but this sends out a error message in cron.

Passing arguments to httpd using apachectl is no longer supported.
You can only start/stop/restart httpd using this script.
If you want to pass extra arguments to httpd, edit the
/etc/sysconfig/httpd config file.

The rotate configuration for the core httpd logs uses this to restart apache

/bin/systemctl reload httpd.service > /dev/null 2>/dev/null
Status: 
Active

Comments

Howdy -- that's an issue that came up in CentOS 7, and is described here:

https://www.virtualmin.com/node/34437

There's also a workaround listed there.

That issue will be corrected in the next Webmin release.

Derp, I searched for "logrotate" and not "log rotate"