diff --git a/roles/slurmdb-config/templates/slurmdblog.j2 b/roles/slurmdb-config/templates/slurmdblog.j2 new file mode 100644 index 0000000000000000000000000000000000000000..f9042d6b392781293a35c0c4d70f09f63813e809 --- /dev/null +++ b/roles/slurmdb-config/templates/slurmdblog.j2 @@ -0,0 +1,24 @@ +{{ slurmdbdlog.log }} +{% endif %} +{ + compress + missingok + nocopytruncate + nocreate + nodelaycompress + nomail + notifempty + noolddir + rotate 5 + sharedscripts + size=5M + create 640 slurm root +{% if ansible_os_family == 'RedHat' and ansible_distribution_version >= '7' %} + postrotate + {{ slurm_dir }}/sbin/slurmdbd flushlogs 1>/dev/null || true +{% else %} + postrotate /etc/init.d/slurmdbd reconfig +{% endif %} + endscript +} +