You could add your restart command to the post install section of composer
"post-install-cmd": [
"service rabbitmq-server restart"
],
Obviously replace to your needs
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello. Is some one has AMQ listeners (RabbitMQ, ActiveMQ, ...) ?
I looking for a way to restart listeners when fresh code is deployed, like a queue:restart but for amq listeners.
What's your method for that ?
Thanks for share and idea ;-)
Ok, I've found the way to ask supervisord to restart a specific process (the MQ listener in my case).
Please or to participate in this conversation.