[rabbitmq-discuss] Unnecessarily complex packaging (Fedora)

Jeffrey Ollie jeff at ocjtech.us
Fri Sep 28 17:59:18 BST 2012


On Fri, Sep 28, 2012 at 7:54 AM, Simon MacMullen <simon at rabbitmq.com> wrote:
> On 28/09/12 13:30, Lionel Cons wrote:
>>
>> I've looked at the init script as part of
>> rabbitmq-server-2.8.7-1.noarch.rpm
>> and I find it unnecessarily complex.
>
> It *is* complex. I *think* all the complexity is necessary.

The complexity is not necessary, at least on Fedora 16 and up.  By
switching to a native systemd service file, the startup is much, much
simpler:

#####################################
[Unit]
Description=RabbitMQ Messaging Server
After=syslog.target network.target

[Service]
EnvironmentFile=-/etc/sysconfig/rabbitmq
User=rabbitmq
ExecStart=/usr/lib/rabbitmq/bin/rabbitmq-server
ExecStop=/usr/lib/rabbitmq/bin/rabbitmqctl stop

[Install]
WantedBy=multi-user.target
#####################################

Of course, that doesn't help RHEL, at least not until RHEL switches to systemd.

-- 
Jeff Ollie


More information about the rabbitmq-discuss mailing list