From 61f68211462e7ecb916d43309e580f81cdcf7b1d Mon Sep 17 00:00:00 2001 From: Allison Larson Date: Tue, 20 Aug 2024 11:06:52 -0700 Subject: [PATCH] Use nfsd update to restart --- plugins/hosts/bsd/cap/nfs.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/hosts/bsd/cap/nfs.rb b/plugins/hosts/bsd/cap/nfs.rb index c6c003db006..7bf929bc440 100644 --- a/plugins/hosts/bsd/cap/nfs.rb +++ b/plugins/hosts/bsd/cap/nfs.rb @@ -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 @@ -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