Mailman, Supervisor, and keeping things running
Hello,
Previously I had a problem when upgrading to the newest versions of the mailman modules - and it turns out that everything requires Python 3 or higher.
That was fine - I spent some time today moving everything from a Python 2.7 virtual environment to a Python 3.6 virtual environment.
What no longer works is Supervisor...
The mailman easy install script from Omar Mochtar set up a webui service that runs wsgi and nginx and keeps them running.
However...supervisor won't run on python 3.6. I'm not seeing a way to make that work. I've read that you can shim it in, but that it isn't recommended to be used in a production environment.
I've looked into circus, and I'm not familiar with it.
I'm wondering if anyone has any examples of setting up a service that keeps processes up and running? I've seen circus, but I'm wondering if anyone has an example of how to set it up, or another service that does the same thing?
-Darren
On Wed, May 2, 2018, at 9:12 PM, Darren Smith wrote:
Hello,
Previously I had a problem when upgrading to the newest versions of the mailman modules - and it turns out that everything requires Python 3 or higher.
That was fine - I spent some time today moving everything from a Python 2.7 virtual environment to a Python 3.6 virtual environment.
What no longer works is Supervisor...
The mailman easy install script from Omar Mochtar set up a webui service that runs wsgi and nginx and keeps them running.
However...supervisor won't run on python 3.6. I'm not seeing a way to make that work. I've read that you can shim it in, but that it isn't recommended to be used in a production environment.
I've looked into circus, and I'm not familiar with it.
I'm wondering if anyone has any examples of setting up a service that keeps processes up and running? I've seen circus, but I'm wondering if anyone has an example of how to set it up, or another service that does the same thing?
You can use the init-system of your Linux distribution? systemd or whatever it comes with?
-Darren
Mailman-users mailing list mailman-users@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
-- Abhilash Raj maxking@asynchronous.in
Abhilash,
My understanding of the init-system is that it will will start the process, but if the process somehow ends it is done. Am I wrong about that? I'm looking for something that monitors the process and keeps it running if something unexpected happens.
On Wed, May 2, 2018 at 10:34 PM, Abhilash Raj <maxking@asynchronous.in> wrote:
On Wed, May 2, 2018, at 9:12 PM, Darren Smith wrote:
Hello,
Previously I had a problem when upgrading to the newest versions of the mailman modules - and it turns out that everything requires Python 3 or higher.
That was fine - I spent some time today moving everything from a Python 2.7 virtual environment to a Python 3.6 virtual environment.
What no longer works is Supervisor...
The mailman easy install script from Omar Mochtar set up a webui service that runs wsgi and nginx and keeps them running.
However...supervisor won't run on python 3.6. I'm not seeing a way to make that work. I've read that you can shim it in, but that it isn't recommended to be used in a production environment.
I've looked into circus, and I'm not familiar with it.
I'm wondering if anyone has any examples of setting up a service that keeps processes up and running? I've seen circus, but I'm wondering if anyone has an example of how to set it up, or another service that does the same thing?
You can use the init-system of your Linux distribution? systemd or whatever it comes with?
-Darren
Mailman-users mailing list mailman-users@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
-- Abhilash Raj maxking@asynchronous.in
Mailman-users mailing list mailman-users@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
On Wed, May 2, 2018, at 9:37 PM, Darren Smith wrote:
Abhilash,
My understanding of the init-system is that it will will start the process, but if the process somehow ends it is done. Am I wrong about that? I'm looking for something that monitors the process and keeps it running if something unexpected happens.
It does indeed monitor the processes and restarts them if they exit unexpectedly.
[Unit] Description=Mailman
[Service] User=mailman Group=www-data Restart=on-failure ExecStart=/path/to/manage.py start
[Install] WantedBy=multi-user.target
This is an example systemd service file that should restart on-failure
.
You can check out systemd's docs for more details about how to configure this.
On Wed, May 2, 2018 at 10:34 PM, Abhilash Raj <maxking@asynchronous.in> wrote:
On Wed, May 2, 2018, at 9:12 PM, Darren Smith wrote:
Hello,
Previously I had a problem when upgrading to the newest versions of the mailman modules - and it turns out that everything requires Python 3 or higher.
That was fine - I spent some time today moving everything from a Python 2.7 virtual environment to a Python 3.6 virtual environment.
What no longer works is Supervisor...
The mailman easy install script from Omar Mochtar set up a webui service that runs wsgi and nginx and keeps them running.
However...supervisor won't run on python 3.6. I'm not seeing a way to make that work. I've read that you can shim it in, but that it isn't recommended to be used in a production environment.
I've looked into circus, and I'm not familiar with it.
I'm wondering if anyone has any examples of setting up a service that keeps processes up and running? I've seen circus, but I'm wondering if anyone has an example of how to set it up, or another service that does the same thing?
You can use the init-system of your Linux distribution? systemd or whatever it comes with?
-Darren
Mailman-users mailing list mailman-users@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
-- Abhilash Raj maxking@asynchronous.in
Mailman-users mailing list mailman-users@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
Mailman-users mailing list mailman-users@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
-- Abhilash Raj maxking@asynchronous.in
Circusd works as described and is quite similar to Supervisord in use. The ini config is straightforward and sufficiently expressive. I can't speak to the included high level monitors, which were still too lightly documented for us to use, though they look useful.
participants (3)
-
Abhilash Raj
-
Darren Smith
-
larry tjoelker