Browse Source

split single slurm logrotate setting into two separate ones

pull/17/head
root 1 year ago
parent
commit
b965d07018
  1. 21
      roles/slurm-management/files/logrotate.d/slurmctld
  2. 6
      roles/slurm-management/files/logrotate.d/slurmdbd

21
roles/slurm-management/files/logrotate.d/slurmctld

@ -0,0 +1,21 @@ @@ -0,0 +1,21 @@
##
# Slurm Logrotate Configuration
##
/var/log/slurm/slurmctld.log {
compress
missingok
nocopytruncate
nodelaycompress
nomail
notifempty
noolddir
rotate 10
sharedscripts
size=5M
create 0600 slurm root
postrotate
pkill -x --signal SIGUSR2 slurmctld
exit 0
endscript
}

6
roles/slurm-management/files/slurm.logrotate → roles/slurm-management/files/logrotate.d/slurmdbd

@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
##
# Slurm Logrotate Configuration
##
/var/log/slurm/*.log {
/var/log/slurm/slurmdbd.log {
compress
missingok
nocopytruncate
@ -12,10 +12,10 @@ @@ -12,10 +12,10 @@
rotate 5
sharedscripts
size=5M
create 640 slurm root
create 0600 slurm root
postrotate
pkill -x --signal SIGUSR2 slurmctld
pkill -x --signal SIGUSR2 slurmdbd
exit 0
endscript
}
Loading…
Cancel
Save