1 |
On Tue, Oct 28, 2014 at 6:18 PM, walt <w41ter@×××××.com> wrote: |
2 |
> On 10/27/2014 08:22 PM, Tom H wrote: |
3 |
>> |
4 |
>> The 1.2.9 nfs-utils ebuild has "systemd_dounit |
5 |
>> "${FILESDIR}"/nfsd.service" where nfsd.service has |
6 |
>> "Requires=rpcbind.service" and "After=rpcbind.service". |
7 |
>> |
8 |
>> The 1.3.0 nfs-utils ebuild has "systemd_dounit |
9 |
>> systemd/*.{mount,service,target}" where nfs-server.service has |
10 |
>> "Requires=rpcbind.target" and After=rpcbind.target". |
11 |
> |
12 |
> Yes, and that little change caused the breakage that inspired this |
13 |
> thread in the first place :) |
14 |
> |
15 |
> I have a Fedora 20 machine running in VirtualBox and I see they've |
16 |
> already fixed the same breakage by going back to 'rpcbind.service' |
17 |
> in their nfs-server.service file. |
18 |
> |
19 |
> I see they also define all those $RPCFOO variables in /etc/sysconfig/nfs, |
20 |
> which are mostly null-strings anyway, which is why my nfs server is |
21 |
> working correctly without those variables. |
22 |
> |
23 |
> (Working correctly *after* "systemctl enable rpcbind", that is.) |
24 |
|
25 |
"systemctl enable rpcbind" or "systemctl start rpcbind"? (Or |
26 |
"systemctl enable rpcbind" and reboot?) |
27 |
|
28 |
I've been wondering about "rpcbind.target". I'm not using systemd on |
29 |
Gentoo but on my laptop running Ubuntu 15.04 (yes, 15 with systemd |
30 |
215), "/lib/systemd/system/rpcbind.target" is provided by systemd. |
31 |
It's also part of the upstream tarball so it must be part of the |
32 |
Gentoo package - and, I have to assume, part of the Fedora systemd |
33 |
package since Lennart's its maintainer there. |
34 |
|
35 |
Since Gentoo's rpcbind.service has "Wants=rpcbind.target" and |
36 |
"Before=rpcbind.target"", having nfs-server.service depend on |
37 |
rpcbind.target rather than rpcbind.service should work as long as |
38 |
rpcbind.service is enabled. |
39 |
|
40 |
But having "Requires=rpcbind.service" and "After=rpcbind.service", |
41 |
like nfsd.service has/had, means that you don't have to enable |
42 |
rpcbind.service. |