Skip to content
Snippets Groups Projects
Thomas Bellman's avatar
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.
670474cf
History
Name Last commit Last update