Skip to content
Snippets Groups Projects
Commit dc004335 authored by Chris Hines's avatar Chris Hines
Browse files

rotate the slurm log correctly

Former-commit-id: f4e47d94
parent eed58e19
No related branches found
No related tags found
No related merge requests found
......@@ -20,9 +20,9 @@
{% if ansible_os_family == 'RedHat' and ansible_distribution_version >= '7' %}
postrotate
{% if slurmctrl == inventory_hostname %}
{{ slurm_dir }}/sbin/slurmctld flushlogs 1>/dev/null || true
systemctl kill -s HUP --kill-who=main slurmctld
{% else %}
{{ slurm_dir }}/sbin/slurmd flushlogs 1>/dev/null || true
systemctl kill -s HUP --kill-who=main slurmd
{% endif %}
{% else %}
postrotate /etc/init.d/slurm reconfig
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment