Skip to content

Commit

Permalink
Merge pull request #143 from bird-house/add-slurm-logrotate
Browse files Browse the repository at this point in the history
add logrotate for slurm
  • Loading branch information
cehbrecht committed Feb 1, 2023
2 parents 281cc04 + 9f332a9 commit d377860
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions group_vars/all
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,21 @@ logrotate_applications:
- sharedscripts
postrotate:
- supervisorctl restart all >/dev/null 2>/dev/null || true
- name: slurm
definitions:
- logs:
- /var/log/slurm/*.log
options:
- rotate 7
- daily
- dateext
- copytruncate
- missingok
- notifempty
- sharedscripts
postrotate:
- systemctl reload slurmd > /dev/null 2>&1 || true
- systemctl reload slurmctld > /dev/null 2>&1 || true

# postgres
db_install_postgresql: true
Expand Down

0 comments on commit d377860

Please sign in to comment.