Submitted by lp86 on Sun, 10/26/2014 - 15:55
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
Submitted by andreychek on Sun, 10/26/2014 - 16:02 Comment #1
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.
Submitted by lp86 on Tue, 10/28/2014 - 11:38 Comment #2
Derp, I searched for "logrotate" and not "log rotate"