Skip to content

Commit

Permalink
Only stop active services
Browse files Browse the repository at this point in the history
  • Loading branch information
cmd-ntrf committed Jan 23, 2025
1 parent 94c8ffc commit e89d5d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/profile/manifests/gpu.pp
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,8 @@

exec { 'stop_nvidia_services':
command => sprintf('systemctl stop %s', $gpu_services.reverse.join(' ')),
onlyif => sprintf('systemctl is-active %s', $gpu_services.reverse.join(' ')),
refreshonly => true,
require => Service[$gpu_services],
path => ['/usr/bin'],
}

Expand Down

0 comments on commit e89d5d3

Please sign in to comment.