[rabbitmq-discuss] rabbitmq-server restart also restarts epmd

David Wragg david.wragg at lshift.net
Tue Nov 3 21:02:33 GMT 2009


Hi Elliot,

Elliot Murphy <elliot at canonical.com> writes:
> On 11/02/2009 03:47 PM, Garrett Smith wrote:
>  > - Removing the rabbitmq-server package necessitates removal of the
>> rabbit user, which necessitates stopping all of its processes. This is
>> also pretty obvious.
>
> CouchDB has faced similar issues.
>
> My understanding of Debian and Ubuntu policy/best practice is that
> packages should not remove system users that they have created.
>
> I didn't find where this is specified in debian policy, but here is a
> wiki page that describes some of the problems with removing system
> users: http://wiki.debian.org/AccountHandlingInMaintainerScripts

Thanks for the link.  That page contains an interesting collection of
both pros and cons of removing accounts, though it doesn't seem to
reach a definitive conclusion on the matter.

> What we have done for CouchDB in Ubuntu (at the insistence/encouragement
> of the core Ubuntu developers) is simply changed the package to not
> remove the CouchDB user, and I'd recommend the same change for RabbitMQ.

I still tend to think that removing the rabbitmq user account when
purging is the right thing to do.  Given that debian packages have
distinct 'remove' and 'purge' operations, it seems sensible to me that
'purge' should remove all traces of the package, and rabbitmq-server's
postrm script adheres to this (for example, when purging it deletes
all files that the package might have created, including log files
etc.).  If the administrator wants a less thorough removal of the
package, then that is exactly what the 'remove' operation is for.
Though I accept that my view might be influenced by our frequent need
to test the rabbitmq-server packages, which makes having 'purge'
return a system to a pristine state rabbit-wise particularly useful.

But naturally, if the Debian community reaches a consensus that
deleting users is never the right thing, then we will make our package
conform.  But it would be good to see a clear signal first, such as a
change to the debian-policy manual.

David

-- 
 [][][] David Wragg       | mail: david.wragg at lshift.net
   [][] Senior Developer  | tel: +44 (0)20 7729 7060
 []  [] LShift Ltd        | web: www.lshift.net




More information about the rabbitmq-discuss mailing list