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

rotate the slurm log correctly

parent c28a5b14
No related branches found
No related tags found
1 merge request!86Slurm
......@@ -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