Skip to content
Snippets Groups Projects
  • Thomas Bellman's avatar
    670474cf
    Support for systemd in apache::daily_restart. · 670474cf
    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
    Support for systemd in apache::daily_restart.
    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.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.