Skip to contentSkip to conversation

RFC: rpcbind start/stop scripts affects all nested pid namespaces

DISCUSSION Stanislav Kinsbursky 2 participants 3 messages Dec 26, 2011 – Jan 10, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

When trying to start and stop rpcbind in different pid namespaces I've noticed, that rpcbind stop command kills all rpcbind processes in nested pid namespaces.
This is caused by "/sbin/pidof rpcbind" call on rpcbind start. IOW file "/var/run/rpcbind.pid" contains pids of all nested rpcbind processes.
The simplest solution I see for now is to add "-c" options to "pidof" command. But I'm not sure about quality of solution and probably "killall5" have to be updated with new option to work only in current pid namespace. Would be glad to hear any opinion about this problem.

Signature · 2 lines
Best regards,
Stanislav Kinsbursky
#1 lore raw

Please note, the systemV init scripts are being replaced with systemd scripts, at least with Fedora 16 and beyond...

See /lib/systemd/system/rpcbind.service on Fedora 16 for the new way rpcbind is started...

steved.

Quoted 5 lines · Stanislav Kinsbursky

When trying to start and stop rpcbind in different pid namespaces I've noticed, that rpcbind stop command kills all rpcbind processes in nested pid namespaces.
This is caused by "/sbin/pidof rpcbind" call on rpcbind start. IOW file "/var/run/rpcbind.pid" contains pids of all nested rpcbind processes.
The simplest solution I see for now is to add "-c" options to "pidof" command. But I'm not sure about quality of solution and probably "killall5" have to be updated with new option to work only in current pid namespace. Would be glad to hear any opinion about this problem.

#2 lore raw

Thanks for notice, Steve.
Will take it into account.

03.01.2012 18:58, Steve Dickson пишет:

Quoted 14 lines

Please note, the systemV init scripts are being replaced with systemd scripts, at least with Fedora 16 and beyond...

See /lib/systemd/system/rpcbind.service on Fedora 16 for the new way rpcbind is started...

steved.

Quoted 5 lines · Stanislav Kinsbursky

When trying to start and stop rpcbind in different pid namespaces I've noticed, that rpcbind stop command kills all rpcbind processes in nested pid namespaces.
This is caused by "/sbin/pidof rpcbind" call on rpcbind start. IOW file "/var/run/rpcbind.pid" contains pids of all nested rpcbind processes.
The simplest solution I see for now is to add "-c" options to "pidof" command. But I'm not sure about quality of solution and probably "killall5" have to be updated with new option to work only in current pid namespace. Would be glad to hear any opinion about this problem.

Signature · 2 lines
Best regards,
Stanislav Kinsbursky