Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 538780 - net-fs/nfs-utils-1.3.2: names of variables in systemd's service files and in /etc/conf.d/nfs are not same
Summary: net-fs/nfs-utils-1.3.2: names of variables in systemd's service files and in ...
Status: RESOLVED DUPLICATE of bug 544772
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Network Filesystems
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-04 09:52 UTC by bay
Modified: 2015-04-01 22:54 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***