Bug 1047972 - nfs-server: modify service file to also enable nfs.target when nfs-server.service is enabled
Summary: nfs-server: modify service file to also enable nfs.target when nfs-server.ser...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: nfs-utils
Version: 20
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Steve Dickson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1050161
TreeView+ depends on / blocked
 
Reported: 2014-01-02 19:04 UTC by Nathanael Noblet
Modified: 2014-01-23 11:10 UTC (History)
5 users (show)

Fixed In Version: nfs-utils-1.2.8-6.2.fc19
Clone Of:
: 1050161 (view as bug list)
Environment:
Last Closed: 2014-01-17 05:47:00 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.