powellnathanj / mcollective-yum-agent

http://nathanpowell.org
17 stars 11 forks source link

Prevent multiple yum instances #10

Open robinbowes opened 8 years ago

robinbowes commented 8 years ago

The yum command should drop some sort of semaphore to prevent multiple instances of the yum command being launched.

There should also be a command to kill any currently running yum processes (in the event that a yum command hangs or is taking too long to run).

powellnathanj commented 8 years ago

yum itself prevents running multiple yum commands. Are you referring to a situation where multiple people on a mco client are trying to use the mco yum application? I could see a use for that.

And I agree with the kill command, that's a great idea.

robinbowes commented 8 years ago

yum prevents multiple commands from actually executing, but it won't stop mcollective launching the processes, which will then sit there waiting from the yum process that has the lock to finish.

I was thinking it might be better to prevent that and only allow one yum process to be run by the mcollective process?

powellnathanj commented 8 years ago

Yeah, OK, agree.