Skip to content

Commit

Permalink
restart munge if socket file is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
xpillons committed Dec 4, 2023
1 parent fb67753 commit c17daf0
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions playbooks/roles/slurm/tasks/cyclecloud-client_3.0.x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,15 @@
delay: 10
register: result
until: result.rc == 0

# restart munge if file /var/run/munge/munge.socket.2 does not exist
- name: restart munge
shell: |
set -e
if [ ! -f /var/run/munge/munge.socket.2 ]; then
systemctl restart munge
fi
retries: 5
delay: 10
register: result
until: result.rc == 0
12 changes: 12 additions & 0 deletions playbooks/roles/slurm/tasks/cyclecloud-server_3.0.x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,15 @@
delay: 10
register: result
until: result.rc == 0

# restart munge if file /var/run/munge/munge.socket.2 does not exist
- name: restart munge
shell: |
set -e
if [ ! -f /var/run/munge/munge.socket.2 ]; then
systemctl restart munge
fi
retries: 5
delay: 10
register: result
until: result.rc == 0

0 comments on commit c17daf0

Please sign in to comment.