Skip to content

Commit

Permalink
Use nfsd update to restart
Browse files Browse the repository at this point in the history
  • Loading branch information
allisonlarson committed Aug 20, 2024
1 parent a00483d commit 61f6821
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions plugins/hosts/bsd/cap/nfs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,7 @@ def self.nfs_export(environment, ui, id, ips, folders)
"#{sudo_command}/usr/bin/tee -a /etc/exports >/dev/null")
end

# We run restart here instead of "update" just in case nfsd
# is not starting
# Attempt to update nfsd
system(*nfs_restart_command)
end

Expand Down Expand Up @@ -160,7 +159,7 @@ def self.nfs_prune(environment, ui, valid_ids)
end

def self.nfs_restart_command(environment)
["sudo", "nfsd", "restart"]
["sudo", "nfsd", "update"]
end

protected
Expand Down

0 comments on commit 61f6821

Please sign in to comment.