Bug#913310: nfs-common: Systemd does not correctly read /etc/default/nfs-common
Package: nfs-common
Version: 1:1.3.4-2.1
Severity: important
Dear Maintainer,
I'm trying to play with NFSv4 with my just-installed or just-upgraded stretch system.
I've found that:
a) is impossible to set daemons flags in /etc/default/nfs-common, because systemd does not read it.
b) it is not possible to restart nfs common daemon, because nfs-common is disabled (and this seems intended)
and nfs-client is a target, so seems can be run only at boot.
[probably this is a consequence of a)]
For a), seems that the 'nfs-config' systemd stanza correctly build up '/run/sysconfig/nfs-utils' environment files, but
then, there's no 'EnvironmentFile=' row in 'nfs-client' and 'nfs-server' so environment varialbles are not read.
Thanks.
-- Package-specific info:
-- rpcinfo --
program vers proto port service
100000 4 tcp 111 portmapper
100000 3 tcp 111 portmapper
100000 2 tcp 111 portmapper
100000 4 udp 111 portmapper
100000 3 udp 111 portmapper
100000 2 udp 111 portmapper
100011 1 udp 996 rquotad
100011 2 udp 996 rquotad
100011 1 tcp 996 rquotad
100011 2 tcp 996 rquotad
100005 1 udp 41830 mountd
100005 1 tcp 34919 mountd
100005 2 udp 55161 mountd
100005 2 tcp 35583 mountd
100005 3 udp 40521 mountd
100005 3 tcp 59835 mountd
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100227 3 tcp 2049
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
100227 3 udp 2049
100021 1 udp 46276 nlockmgr
100021 3 udp 46276 nlockmgr
100021 4 udp 46276 nlockmgr
100021 1 tcp 35009 nlockmgr
100021 3 tcp 35009 nlockmgr
100021 4 tcp 35009 nlockmgr
-- /etc/default/nfs-common --
NEED_STATD=no
STATDOPTS=
NEED_IDMAPD=yes
NEED_GSSD=yes
RPCGSSDOPTS="-vvvvv"
-- /etc/idmapd.conf --
[General]
Verbosity = 5
Pipefs-Directory = /run/rpc_pipefs
Domain = ad.fvg.lnf.it
Local-Realm = AD.FVG.LNF.IT
[Mapping]
Nobody-User = nobody
Nobody-Group = nogroup
[Translation]
Method = nsswitch,static
GSS-Methods = nsswitch,static
[Static]
vdmpp1$@AD.FVG.LNF.IT = root
-- /etc/fstab --
-- System Information:
Debian Release: 9.5
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'oldstable-updates'), (500, 'stable'), (500, 'oldstable')
Architecture: amd64 (x86_64)
Kernel: Linux 4.9.0-8-amd64 (SMP w/4 CPU cores)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8), LANGUAGE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages nfs-common depends on:
ii adduser 3.115
ii init-system-helpers 1.48
ii keyutils 1.5.9-9
ii libc6 2.24-11+deb9u3
ii libcap2 1:2.25-1
ii libcomerr2 1.43.4-2
ii libdevmapper1.02.1 2:1.02.137-2
ii libevent-2.0-5 2.0.21-stable-3
ii libgssapi-krb5-2 1.15-1+deb9u1
ii libk5crypto3 1.15-1+deb9u1
ii libkeyutils1 1.5.9-9
ii libkrb5-3 1.15-1+deb9u1
ii libmount1 2.29.2-1+deb9u1
ii libnfsidmap2 0.25-5.1
ii libtirpc1 0.2.5-1.2
ii libwrap0 7.6.q-26
ii lsb-base 9.20161125
ii rpcbind 0.2.3-0.6
ii ucf 3.0036
Versions of packages nfs-common recommends:
ii python 2.7.13-2
Versions of packages nfs-common suggests:
pn open-iscsi <none>
pn watchdog <none>
Versions of packages nfs-kernel-server depends on:
ii init-system-helpers 1.48
ii keyutils 1.5.9-9
ii libblkid1 2.29.2-1+deb9u1
ii libc6 2.24-11+deb9u3
ii libcap2 1:2.25-1
ii libsqlite3-0 3.16.2-5+deb9u1
ii libtirpc1 0.2.5-1.2
ii libwrap0 7.6.q-26
ii lsb-base 9.20161125
ii netbase 5.4
ii ucf 3.0036
-- Configuration Files:
/etc/default/nfs-common changed:
NEED_STATD=no
STATDOPTS=
NEED_IDMAPD=yes
NEED_GSSD=yes
RPCGSSDOPTS="-vvvvv"
-- no debconf information
Reply to: