You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 27, 2018. It is now read-only.
Not a bug, but any advice on what to do if you're running mailman on an AWS server, and mailman keeps shutting down? I'm trying to have a mailman always live and listening to messages, but mailman keeps terminating after 24 hours or so? The longest it's been continuously live was about 36 hours.
I'm not sure what's causing this, I don't see an error that crashed it in the logs, so I'm assuming it just decided to shut down?
The text was updated successfully, but these errors were encountered:
It can crash for a number of reasons, such as syntax errors, stale DB connections, or other reasons. This is what we do within our Ruby on Rails app to keep it running 24/7. It's in a script mailman_server which we restart with each deploy:
#!/usr/bin/env rubyrequireFile.expand_path(File.join(File.dirname(__FILE__),'..','config','environment'))require"daemons"require"mailman"pid_dir ||= Rails.root.join("tmp/pids")Dir.mkdir(pid_dir)unlessFile.exists?(pid_dir)Daemons.run_proc("mailman_server",:dir=>pid_dir,:dir_mode=>:normal)dobeginMailman.config.logger=Logger.new(Rails.root.join("log/mailman.log"))Mailman.config.pop3={ ... }Mailman.config.poll_interval=60Mailman.config.ignore_stdin=trueMailman::Application.rundoto(/.........../)doActiveRecord::Base.verify_active_connections!# Your logic hereendendrescueNet::POPAuthenticationErrorretry# Error is temporary - simply keep retrying itrescue=>exception# The Mailman process has thrown an error and stopped.Airbrake.notify(exception)# Report itretry# Restart itendend
We're getting ready to deploy mailman in production and we're using upstart to launch it and keep it running. You can run just about any ruby daemon - including mailman - with this strategy. Here's a decent writeup: http://www.alexreisner.com/code/upstart
Not a bug, but any advice on what to do if you're running mailman on an AWS server, and mailman keeps shutting down? I'm trying to have a mailman always live and listening to messages, but mailman keeps terminating after 24 hours or so? The longest it's been continuously live was about 36 hours.
I'm not sure what's causing this, I don't see an error that crashed it in the logs, so I'm assuming it just decided to shut down?
The text was updated successfully, but these errors were encountered: