[rabbitmq-discuss] Cleaning up after a rabbitmq-server install

Matthew Sackman matthew at rabbitmq.com
Mon Apr 9 14:02:18 BST 2012


Hi Matt,

On Fri, Apr 06, 2012 at 09:51:04AM -0700, Matt Pietrek wrote:
> Now, for a run-of-the-mill installation of some service ("apt-get
> install <program-name>" ), I wouldn't expect anything to be left
> running after the install completes. That is, installing a program
> shouldn't just automatically leave the program running after
> installing it, as well as other running bits and pieces.

Hmm. My recollection is that installing things like apache, nginx,
postgresql etc etc (i.e. system daemons) does exactly that and leaves
them running. Please correct me if I'm wrong there, but I don't think we
do anything abnormal.

> However, I don't see a way to tell the rabbitmq-server install to just
> drop the bits, and not leave anything running.

Oh, there's probably some bizarre dpkg incantation that can do that -
probably just "don't run the postinstall" or something, but that might
leave the package in a badly configured state. Again, do other system
daemons provide this sort of option? If so, how? We'll be more than
happy to cope whatever is the standard way of achieving this for Debian.

> The issue is: We don't want these leftover processes running as the
> rabbitmq user hanging around after puppet completes. I've experimented
> with adding "epmd -kill" to the Puppet scripts, and it successfully
> kills epmd on about 30% of the nodes, but it fails (exit code != 0) on
> the other 70%.

Hmm, that suggests that we should probably have the user configurable
via debconf, and then you can probably pre-seed the answers there. What
do you reckon?

Matthew


More information about the rabbitmq-discuss mailing list