Skip to content

Prevent httpd from dying on logrotate reloads #594

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions ansible/roles/ldap/handlers/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
- name: Restart httpd
ansible.builtin.systemd:
name: httpd
state: restarted
tags:
- role::ldap
17 changes: 17 additions & 0 deletions ansible/roles/ldap/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,20 @@
- Reload the firewall
tags:
- role::ldap

- name: Increase apache process limit
ansible.builtin.copy:
content: |
<!-- Ansible managed -->
<!-- See https://stackoverflow.com/questions/22576807/scoreboard-is-full-not-at-maxrequestworkers -->
<IfModule mpm_event_module>
ServerLimit 48
</IfModule>
dest: /etc/httpd/conf.modules.d/99-mpm-server-limit.conf
owner: root
group: root
mode: 0o444
notify:
- Restart httpd
tags:
- role::ldap
Loading