stop and restart the services correctly for RHEL