Overview

Request 448293 accepted

kill leftover epmd process in build


Matwey Kornilov's avatar

Could you please be more verbose? Why do you need this?


Bernhard Wiedemann's avatar

This is similar in nature to bsc#1017666 and bsc#1017668 in that when you build a package with osc build or rpmbuild, you dont want to have leftover processes after that filling up your build host system.


Matwey Kornilov's avatar

Wait a minute... But both issues assume that you don't use isolated environment for building, right? That means that epmd -kill may actually kill epmd daemon which has already been running in parallel when the build was started. And this way this will crash existing applications (like RabbitMQ) running on the host.


Bernhard Wiedemann's avatar

but the epmd man page says * With relaxed command checking, the epmd daemon can be killed from the localhost with i.e. epmd -kill even if there are active nodes registered. Normally only daemons with an empty node database can be killed with the epmd -kill command.


Matwey Kornilov's avatar

That makes sense.


Bernhard Wiedemann's avatar

I tested this on a SUSE Cloud node with rabbitmq:

epmd -kill

Killing not allowed - living nodes in database.


Matwey Kornilov's avatar

Then probably return should be ignored like the following;

epmd -kill || /bin/true

?


Bernhard Wiedemann's avatar

I was thinking of that, too but found that it still returned 0 (aka success) in that case.

Request History
Bernhard Wiedemann's avatar

bmwiedemann created request

kill leftover epmd process in build


Matwey Kornilov's avatar

matwey accepted request

ok

openSUSE Build Service is sponsored by