I'm still working on my mailman site  https://lists.repec.info. It's now
  sadder than it was before. To test, I need to restart mailmanweb for testing.
  I don't quite get how to stop mailmanweb.

root@darni ~ # systemctl stop mailmanweb

   But mailman-web processes are still running
   
root@darni ~ # ps axf | grep mailman-web
 532703 pts/4    S+     0:00      \_ grep mailman-web
 516993 ?        Ss     0:00 /usr/local/mailman/venv/bin/python3.13 
/usr/local/mailman/venv/bin/mailman-web qcluster --pythonpath /etc/mailman3 
--settings settings
 517012 ?        S      0:05  \_ /usr/local/mailman/venv/bin/python3.13 
/usr/local/mailman/venv/bin/mailman-web qcluster --pythonpath /etc/mailman3 
--settings settings
 517014 ?        S      0:00      \_ /usr/local/mailman/venv/bin/python3.13 
/usr/local/mailman/venv/bin/mailman-web qcluster --pythonpath /etc/mailman3 
--settings settings
 517015 ?        S      0:00      \_ /usr/local/mailman/venv/bin/python3.13 
/usr/local/mailman/venv/bin/mailman-web qcluster --pythonpath /etc/mailman3 
--settings settings
 517016 ?        S      0:00      \_ /usr/local/mailman/venv/bin/python3.13 
/usr/local/mailman/venv/bin/mailman-web qcluster --pythonpath /etc/mailman3 
--settings settings
 517017 ?        S      2:09      \_ /usr/local/mailman/venv/bin/python3.13 
/usr/local/mailman/venv/bin/mailman-web qcluster --pythonpath /etc/mailman3 
--settings settings

  Here for some background. Here is my service
  
root@darni /var/log/mailman3 # cat /etc/systemd/system/mailmanweb.service
[Unit]
Description=GNU Mailman Web UI
After=syslog.target network.target postgresql.service mailman3.service

[Service]
Environment="PYTHONPATH=/etc/mailman3/"
User=mailman
Group=mailman
ExecStart=/usr/local/mailman/venv/bin/uwsgi --ini /etc/mailman3/uwsgi.ini
KillSignal=SIGINT

[Install]
WantedBy=multi-user.target

  Here is my config

root@darni ~ # cat /etc/mailman3/uwsgi.ini
# /etc/mailman3/uwsgi.ini
#
[uwsgi]
# Port on which uwsgi will be listening.
http-socket = 0.0.0.0:8000
# If running uwsgi from the virtual environment ...
virtualenv = /usr/local/mailman/venv/

module=mailman_web.wsgi:application
# Set PYTHONPATH
env = PYTHONPATH=/etc/mailman3/
# The default settings module.
env = DJANGO_SETTINGS_MODULE=settings

# Setup default number of processes and threads per process.
master = true
processes = 2
threads = 2

plugins = logfile

# Setup the django_q related worker processes.
attach-daemon = /usr/local/mailman/venv/bin/mailman-web qcluster

# Setup the request log.
req-logger = file:/usr/local/mailman/web/logs/uwsgi.log

# Log qcluster commands separately.
logger = qcluster file:/usr/local/mailman/web/logs/uwsgi-qcluster.log
log-route = qcluster uwsgi-daemons

# Last log and it logs the rest of the stuff.
logger = file:/usr/local/mailman/web/logs/uwsgi-error.log

  It's the same as is the doc, just the head directory is changed.
  I also had to add
  
plugins = logfile

  otherwise I get complaints it can't log. I suspect this could
  be usefully added to the doc. 

  Thanks and cheers!
  
-- 
  Written by Thomas Krichel http://openlib.org/home/krichel on his 22206th day.
_______________________________________________
Mailman-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
Archived at: 
https://lists.mailman3.org/archives/list/[email protected]/message/YE6Q2AXQB2HABXMTXDWNXYNQUJ3HEKZ4/

This message sent to [email protected]

Reply via email to