Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 538780

Summary: net-fs/nfs-utils-1.3.2: names of variables in systemd's service files and in /etc/conf.d/nfs are not same
Product: Gentoo Linux Reporter: bay <alex3255>
Component: [OLD] Core systemAssignee: Network Filesystems <net-fs>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description bay 2015-02-04 09:52:53 UTC
In /etc/conf.d/nfs these option names are used:
OPTS_RPC_NFSD, OPTS_RPC_SVCGSSD, OPTS_RPC_MOUNTD, OPTS_RPC_STATD, OPTS_RPC_IDMAPD, OPTS_RPC_GSSD

But nfs-utils' services files are expecting to find other names, for example in nfs-server.service:
[Service]
EnvironmentFile=/etc/conf.d/nfs
ExecStart=/usr/sbin/rpc.nfsd $RPCNFSDARGS

The variable names are expected to see are: RPCNFSDARGS, SVCGSSDARGS, RPCMOUNTDARGS, STATDARGS, SMNOTIFYARGS, BLKMAPDARGS, RPCIDMAPDARGS, GSSDARGS


The next renamings in nfs-utils' service files are proposed:
RPCNFSDARGS -> OPTS_RPC_NFSD
SVCGSSDARGS -> OPTS_RPC_SVCGSSD
RPCMOUNTDARGS -> OPTS_RPC_MOUNTD
STATDARGS -> OPTS_RPC_STATD
RPCIDMAPDARGS -> OPTS_RPC_IDMAPD
GSSDARGS -> OPTS_RPC_GSSD

This will make names compatible with both openrc and systemd.


Reproducible: Always

Steps to Reproduce:
1. When systemd is used, change one of vars in /etc/conf.d/nfs
2. Restart the service

Actual Results:  
Vars from /etc/conf.d/nfs are not used.

Expected Results:  
Vars from /etc/conf.d/nfs are used.
Comment 1 Andrew Savchenko gentoo-dev 2015-04-01 22:54:23 UTC
Bug 544772 contains a patch for this.

*** This bug has been marked as a duplicate of bug 544772 ***