Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Settings in /etc/default/nfs-common & nfs-kernel-server need to be moved to /run/sysconfig/nfs-utils on Ubuntu 16.04 #97

Open
fozboz opened this issue Jun 2, 2017 · 1 comment

Comments

@fozboz
Copy link

fozboz commented Jun 2, 2017

Package: nfs-kernel-server
Version: 1:1.2.8-9ubuntu12.1
Ubuntu 16.04

This version of NFS uses /run/sysconfig/nfs-utils for its runtime settings.

There is a script at /usr/lib/systemd/scripts/nfs-utils_env.sh which populates /run/sysconfig/nfs-utils with settings in /etc/default/nfs-* . This script needs to be notified whenever the /etc/default/nfs-* settings change.

At present, a reboot is necessary before an NFS server starts correctly on 16.04 using this cookbook.

@fozboz
Copy link
Author

fozboz commented Jun 2, 2017

I've added:

if node['platform'] == 'ubuntu' && node['platform_version'] == '16.04'
execute 'update NFS settings' do
command '/usr/lib/systemd/scripts/nfs-utils_env.sh'
action :nothing
subscribes :run, 'service[nfs-kernel-server]', :before
end
end

which seems to have fixed the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant