Skip to content
Snippets Groups Projects
Commit 670474cf authored by Thomas Bellman's avatar Thomas Bellman
Browse files

Support for systemd in apache::daily_restart.

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.
parent 57727842
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment