drupal-vm icon indicating copy to clipboard operation
drupal-vm copied to clipboard

Replace daemonize with supervisord

Open heddn opened this issue 8 years ago • 7 comments

Issue Type

  • Feature Idea

Summary

When recently setting up a queuing solution for Symfony, the suggested solution for daemonizing things was supervisord. And I find that installing it on Mac and Linux is fairly trivial. While installing daemonize on Linux is not so easy. It has to be installed from source. Which means that supervisor is much more popular. Why not switch to using it instead of daemonize? Then I can use supervisor in drupalvm and in my server environments too.

http://supervisord.org/installing.html

heddn avatar Jun 01 '17 22:06 heddn

Daemonize is only used for Mailhog... but yeah, using Supervisord may be a bit simpler. Funny story, I just spent a couple weeks getting deeply familiar with Supervisord for some Docker internal service organization on a different project :)

So I'm definitely +1 here, but the main thing would be adding a role, which I've been meaning to do anyways. Then after that, ensuring Mailhog runs under Supervisord instead of Daemonize. Which is pretty simple!

geerlingguy avatar Jun 02 '17 03:06 geerlingguy

Working on the role here: https://github.com/geerlingguy/ansible-role-supervisor

Will need to play around with how I use the role to manage programs (or maybe delegate that task to the Mailhog role, and either make it work with either daemonize or supervisor, or make it just work with supervisor).

geerlingguy avatar Jun 03 '17 05:06 geerlingguy

It's actually fairly easy to get this working, now that I've had a little time to suss out the role. I don't know if I'll be able to get it into Drupal VM within the next few days, but this has some priority—it will also help with some more of the future Dockerization.

geerlingguy avatar Jun 05 '17 04:06 geerlingguy

Role is now working, documented, and feature-complete.

geerlingguy avatar Jun 06 '17 04:06 geerlingguy

I just reviewed the docs. This is looking good.

heddn avatar Jun 06 '17 15:06 heddn

Someday I'll get time to do this :P

geerlingguy avatar Nov 21 '18 21:11 geerlingguy

Someday...

geerlingguy avatar Jul 14 '20 15:07 geerlingguy