diff mbox series

[nfs-utils] dependency issue with rpc.idmapd systemd unit file

Message ID CAH5FnXXZO3uUtJOndsf-LfwPiS8ug_oBnbj-VoYVG0CeFx8ejA@mail.gmail.com (mailing list archive)
State New
Headers show
Series [nfs-utils] dependency issue with rpc.idmapd systemd unit file | expand

Commit Message

Leo Nov. 17, 2024, 6:09 a.m. UTC
Hi there,

I would like to report a bug with nfs-utils.

The package provides a file, nfs-idmapd.service, which is a systemd
unit file contains contents below:

[Unit]
Description=NFSv4 ID-name mapping service
Documentation=man:idmapd(8)
DefaultDependencies=no
Requires=rpc_pipefs.target
After=rpc_pipefs.target local-fs.target network-online.target
Wants=network-online.target

BindsTo=nfs-server.service

[Service]
Type=forking
ExecStart=/usr/sbin/rpc.idmapd

This systemd unit declares a strong dependency to another unit,
nfs-server.service, which is for NFSv3, while idmapd is dedicated for
NFSv4.

In case the user wants to set up a NFSv4-only server,
nfs-server.service and rpcbind.service shall be masked, while
nfsv4-server.service should be enabled and started, which renders
nfs-idmapd.service unable to be started.

I would suggest such a patch to have this issue fixed:


Best Regards

Jianze
diff mbox series

Patch

--- a/nfs-idmapd.service 2024-10-20 15:17:42.000000000 +0800
+++ b/nfs-idmapd.service 2024-11-17 14:06:18.028380419 +0800
@@ -6,7 +6,7 @@ 
 After=rpc_pipefs.target local-fs.target network-online.target
 Wants=network-online.target

-BindsTo=nfs-server.service
+BindsTo=nfsv4-server.service

 [Service]
 Type=forking