Skip to content

Commit

Permalink
Remove exec slurmd restart
Browse files Browse the repository at this point in the history
  • Loading branch information
cmd-ntrf committed Dec 2, 2024
1 parent cffb4e6 commit 454c8ce
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions site/profile/manifests/slurm.pp
Original file line number Diff line number Diff line change
Expand Up @@ -729,17 +729,6 @@
create_group => 'root',
postrotate => '/usr/bin/pkill -x --signal SIGUSR2 slurmd',
}

$hostname = $facts['networking']['hostname']

# If slurmctld server is rebooted slurmd needs to be restarted.
# Otherwise, slurmd keeps running, but the node is not in any partition
# and no job can be scheduled on it.
exec { 'systemctl restart slurmd':
onlyif => "test $(sinfo -n ${hostname} -o %t -h | wc -l) -eq 0",
path => ['/usr/bin', '/opt/software/slurm/bin'],
require => Service['slurmd'],
}
}

# Slurm submitter class. This is for instances that neither run slurmd
Expand Down

0 comments on commit 454c8ce

Please sign in to comment.