Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Commit

Permalink
Reload Udev
Browse files Browse the repository at this point in the history
Should have been udev that needs a reload and not systemd.
  • Loading branch information
Simon Murray committed Aug 15, 2017
1 parent 1bf2aa4 commit de4e4aa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions manifests/service.pp
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@

# Oddly I've seen OSD udev rules not applying on Xenial which are
# fixed with a reload
exec { 'ceph::service systemctl reload':
command => '/bin/systemctl daemon-reload',
exec { 'ceph::service udev reload':
command => '/bin/systemctl restart udev',
refreshonly => true,
}
}
Expand Down
6 changes: 3 additions & 3 deletions spec/classes/init_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,9 @@
)
end

it 'reloads systemctl on a systemd system' do
is_expected.to contain_exec('ceph::service systemctl reload').with(
'command' => '/bin/systemctl daemon-reload',
it 'reloads udev on a systemd system' do
is_expected.to contain_exec('ceph::service udev reload').with(
'command' => '/bin/systemctl restart udev',
'refreshonly' => 'true'
)
end
Expand Down

0 comments on commit de4e4aa

Please sign in to comment.