If someone starts mailman in the rails environment the pid should created in the tmp/pids directory. Therefor I set the dir in the script/mailman_daemon file like this:
Daemons.run 'script/mailman_server', dir: File.expand_path(File.join(File.dirname(__FILE__), '..', 'tmp', 'pids')), dir_mode: :normal
This is important for restarting mailman_daemon together with capistrano.
If someone starts mailman in the rails environment the pid should created in the tmp/pids directory. Therefor I set the dir in the script/mailman_daemon file like this:
This is important for restarting mailman_daemon together with capistrano.