Skip to content

Commit 61f6821

Browse files
committed
Use nfsd update to restart
1 parent a00483d commit 61f6821

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

plugins/hosts/bsd/cap/nfs.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,7 @@ def self.nfs_export(environment, ui, id, ips, folders)
117117
"#{sudo_command}/usr/bin/tee -a /etc/exports >/dev/null")
118118
end
119119

120-
# We run restart here instead of "update" just in case nfsd
121-
# is not starting
120+
# Attempt to update nfsd
122121
system(*nfs_restart_command)
123122
end
124123

@@ -160,7 +159,7 @@ def self.nfs_prune(environment, ui, valid_ids)
160159
end
161160

162161
def self.nfs_restart_command(environment)
163-
["sudo", "nfsd", "restart"]
162+
["sudo", "nfsd", "update"]
164163
end
165164

166165
protected

0 commit comments

Comments
 (0)