Comment 11 for bug 1697339

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Oh, hm, I was mislead, this is using systemd already, it's just shipping the upstart files along for the ride.

So:
/lib/systemd/system/rpc-gssd.service reads /run/sysconfig/nfs-utils, which is generated by /lib/systemd/system/nfs-config.service by calling /usr/lib/systemd/scripts/nfs-utils_env.sh.

That wrapper /usr/lib/systemd/scripts/nfs-utils_env.sh sources /etc/default/nfs-common and /etc/default/nfs-kernel-server, but doesn't handle rpc.gssd options. In fact, it has this comment:

# the following are supported by the systemd units, but not exposed in default files
...
# echo RPCGSSDARGS=\"$RPCGSSDARGS\"

So even if you define RPCGSSDARGS in one of those /etc/default/nfs* files, it won't be passed along to the systemd service. Why was it decided like that? No idea :/

I guess the answer to my question in #10 is "use a systemd service override and add the -D option there"?