-
Thomas Bellman authored
The cron job created by the apache::daily_restart class used the /sbin/service command explicitly to check if httpd is already running. While at least RHEL-7/Fedora has a compatibility script that calls systemctl, it is good form to use systemctl directly when we are on a systemd-based OS. Do so. Also use systemctl status to give more information when the restart failed.
Thomas Bellman authoredThe cron job created by the apache::daily_restart class used the /sbin/service command explicitly to check if httpd is already running. While at least RHEL-7/Fedora has a compatibility script that calls systemctl, it is good form to use systemctl directly when we are on a systemd-based OS. Do so. Also use systemctl status to give more information when the restart failed.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.