[packages/rpcbind] - use upstream systemd units (with patch); real life check wanted - use upstream make install

Jakub Bogusz qboosh at pld-linux.org
Mon Aug 27 18:35:08 CEST 2018


On Wed, Jul 18, 2018 at 04:44:01PM +0200, Jakub Bogusz wrote:
> On Thu, Jun 14, 2018 at 12:18:27PM +0200, Andrzej Zawadzki wrote:
> >    Hi!
> >    Doesn't work :-(
> >    [root at pld-template ~]# systemctl status nfslock
> >    0M nfslock.service - NFS file locking service
> >       Loaded: loaded (/lib/systemd/system/nfslock.service; enabled; vendor
> >    preset: enabled)
> >       Active: failed (Result: exit-code) since Thu 2018-06-14 10:42:18
> >    CEST; 4min 6s ago
> >      Process: 874 ExecStopPost=/sbin/sysctl -w fs.nfs.nlm_tcpport=0
> >    fs.nfs.nlm_udpport=0 (code=exited, status=254)
> >      Process: 815 ExecStart=/sbin/rpc.statd $STATDOPTIONS (code=exited,
> >    status=1/FAILURE)
> >      Process: 808 ExecStartPre=/usr/share/nfs-utils/nfslock.preconfig
> >    (code=exited, status=0/SUCCESS)
> >    cze 14 10:42:18 pld-template rpc.statd[826]: Failed to register (statd,
> >    1, udp): svc_reg() err: RPC: Success
> >    cze 14 10:42:18 pld-template rpc.statd[826]: Failed to register (statd,
> >    1, tcp): svc_reg() err: RPC: Success
> >    cze 14 10:42:18 pld-template rpc.statd[826]: Failed to register (statd,
> >    1, udp6): svc_reg() err: RPC: Success
> >    cze 14 10:42:18 pld-template rpc.statd[826]: Failed to register (statd,
> >    1, tcp6): svc_reg() err: RPC: Success
> >    cze 14 10:42:18 pld-template rpc.statd[826]: failed to create RPC
> >    listeners, exiting
> 
> Any ideas on the cause?

"err: RPC: Success" looks odd...

> >    cze 14 10:42:18 pld-template systemd[1]: nfslock.service: Control
> >    process exited, code=exited status=1
> >    cze 14 10:42:18 pld-template sysctl[874]: sysctl: cannot stat
> >    /proc/sys/fs/nfs/nlm_tcpport: No such file or directory
> >    cze 14 10:42:18 pld-template sysctl[874]: sysctl: cannot stat
> >    /proc/sys/fs/nfs/nlm_udpport: No such file or directory
> 
> Some module not loaded?

This is clear - all of nfs.init, nfsfs.init and nfslock.init call sysctl
on fs.nfs.nlm_{tcp,udp}port, but only nfs.init ensures proper module is
loaded.
These sysctls are defined in "lockd" module; nfs.init loads "nfsd" module,
which requires "lockd". But the other .init files don't load any module.


-- 
Jakub Bogusz    http://qboosh.pl/


More information about the pld-devel-en mailing list