Skip to content
Snippets Groups Projects
Commit 8237d6a1 authored by Andreas Hamacher's avatar Andreas Hamacher
Browse files

Merge branch 'slurmlogrotate' into 'master'

Slurmlogrotate

See merge request !330
parents a9ab598f ec87bc58
No related branches found
No related tags found
1 merge request!330Slurmlogrotate
{% if slurmctrl == inventory_hostname %}
{% if (slurmctrl == inventory_hostname) or (slurmctrlbackup == inventory_hostname) %}
{{ slurmctlddebug.log }}
{{ slurmschedlog.log }}
{% else %}
{{ slurmddebug.log }}
{% endif %}
......@@ -17,16 +16,15 @@
sharedscripts
size=5M
create 640 slurm root
{% if ansible_os_family == 'RedHat' and ansible_distribution_version >= '7' %}
# documentation to be found at https://slurm.schedmd.com/slurm.conf.html section Logging
postrotate
{% if slurmctrl == inventory_hostname %}
systemctl kill -s HUP --kill-who=main slurmctld
{% if (slurmctrl == inventory_hostname) or (slurmctrlbackup == inventory_hostname) %}
pkill -x --signal SIGUSR2 slurmctld
pkill -x --signal SIGUSR2 slurmdbd
{% else %}
systemctl kill -s HUP --kill-who=main slurmd
{% endif %}
{% else %}
postrotate /etc/init.d/slurm reconfig
pkill -x --signal SIGUSR2 slurmd
{% endif %}
exit 0
endscript
}
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