Bug 1047972

Summary: nfs-server: modify service file to also enable nfs.target when nfs-server.service is enabled
Product: [Fedora] Fedora Reporter: Nathanael Noblet <nathanael>
Component: nfs-utilsAssignee: Steve Dickson <steved>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: bfields, fedora, jlayton, steved, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: nfs-utils-1.2.8-6.2.fc19 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1050161 (view as bug list) Environment:
Last Closed: 2014-01-17 05:47:00 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1050161    

Description Nathanael Noblet 2014-01-02 19:04:29 UTC
Description of problem:
I would enable nfs-server via systemctl enable nfs-server. However on boot nfs-server wouldn't be running. On talking with people on #systemd they noticed that the [Install] section of the service file should use Also=nfs.target instead of the WantedBy=nfs.target. I copied the service file to /etc/systemd/system/ made that change and noticed that it linked the nfs.target instead of server. Seemed to do the trick

Version-Release number of selected component (if applicable):
nfs-utils-1.2.8-6.0.fc20.x86_64

How reproducible:
Always

Steps to Reproduce:
1. systemctl enable nfs-server
2. reboot
3.

Actual results:
No NFS server running

Expected results:
NFS server running

Additional info:

Comment 1 Nathanael Noblet 2014-01-02 19:12:59 UTC
So I was mistaken... the service file needs the Also=nfs.target *added* to the service file not replacing WantedBy...

Comment 2 Fedora Update System 2014-01-08 17:48:35 UTC
nfs-utils-1.2.9-2.0.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/nfs-utils-1.2.9-2.0.fc20

Comment 3 Fedora Update System 2014-01-08 17:49:42 UTC
nfs-utils-1.2.8-6.1.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/nfs-utils-1.2.8-6.1.fc19

Comment 4 Fedora Update System 2014-01-09 07:37:50 UTC
Package nfs-utils-1.2.9-2.0.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing nfs-utils-1.2.9-2.0.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-0444/nfs-utils-1.2.9-2.0.fc20
then log in and leave karma (feedback).

Comment 5 Christian Stadelmann 2014-01-10 11:38:39 UTC
This update introduces a new bug (typo) in the service file. See syslog: systemd[1]: [/usr/lib/systemd/system/nfs-server.service:22] Unknown lvalue 'ALso' in section 'Install'

Comment 6 Fedora Update System 2014-01-17 05:47:00 UTC
nfs-utils-1.2.9-2.1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2014-01-23 11:10:40 UTC
nfs-utils-1.2.8-6.2.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.