2018-04-17 20:28:48 -03:00
|
|
|
##
|
|
|
|
# Slurm Logrotate Configuration
|
|
|
|
##
|
2019-01-29 22:26:21 -04:00
|
|
|
# TODO: this ignores the actual *LogFile values
|
|
|
|
{{ '/var/log/slurm-llnl' if __slurm_debian else '/var/log/slurm' }}/*.log {
|
2018-04-17 20:28:48 -03:00
|
|
|
compress
|
|
|
|
missingok
|
|
|
|
nocopytruncate
|
|
|
|
nocreate
|
|
|
|
nodelaycompress
|
|
|
|
nomail
|
|
|
|
notifempty
|
|
|
|
noolddir
|
|
|
|
rotate 5
|
|
|
|
sharedscripts
|
|
|
|
size=32M
|
|
|
|
create 640 slurm root
|
|
|
|
postrotate
|
|
|
|
for daemon in $(/usr/bin/scontrol show daemons)
|
|
|
|
do
|
|
|
|
killall -SIGUSR2 $daemon
|
|
|
|
done
|
|
|
|
endscript
|
|
|
|
}
|