summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorBarry Warsaw2008-02-25 00:24:03 -0500
committerBarry Warsaw2008-02-25 00:24:03 -0500
commit6965bd89216a8d759ff8ea35ca4d1e88b0c35906 (patch)
tree642089474463c2632ab358a8f6d982af19ed24ca /data
parentaab29f252ebefb1520714080a90bb42a25393f18 (diff)
downloadmailman-6965bd89216a8d759ff8ea35ca4d1e88b0c35906.tar.gz
mailman-6965bd89216a8d759ff8ea35ca4d1e88b0c35906.tar.zst
mailman-6965bd89216a8d759ff8ea35ca4d1e88b0c35906.zip
Rework the basic infrastructure for qrunner process control. Split out the
functionality of mailmanctl into a separate master watcher script. mailmanctl has not yet been updated but that'll happen next. Fix DELIVERY_MODULE to name a handler instead of a module. Change make_instance to use pkg_resources instead of module.__file__. Change the qrunner and master processes coordination so that the qrunners are not restarted on SIGINT, because otherwise C-c just doesn't work. Now SIGUSR1 is how we'll implement 'mailman restart'. Add a database commit so that initializing the schema doesn't lock the sqlite database. Also, don't try to initialize the schema if the tables already exist. Use some sqlite magic to do this test. Move mailman.cfg.in into a new package Mailman/extras inside the tree. Also, MAILMAN_UID and MAILMAN_GID should be integers not strings. Convert the command runner to use an IHandler instance instead of handler module. Similarly for the outgoing runner, DELIVERY_MODULE now names an IHandler instance instead of a handler module.
Diffstat (limited to 'data')
-rw-r--r--data/mailman.cfg.in45
1 files changed, 0 insertions, 45 deletions
diff --git a/data/mailman.cfg.in b/data/mailman.cfg.in
deleted file mode 100644
index 3e24acc46..000000000
--- a/data/mailman.cfg.in
+++ /dev/null
@@ -1,45 +0,0 @@
-# -*- python -*-
-
-# Copyright (C) 2006-2007 by the Free Software Foundation, Inc.
-#
-# This program is free software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
-# USA.
-
-"""This module contains your site-specific settings.
-
-Use this to override the default settings in `Mailman/Defaults.py`. You only
-need to include those settings that you want to change, and unlike the old
-`mm_cfg.py` file, you do /not/ need to `import Defaults`. Its variables will
-automatically be available in this module's namespace.
-
-You should consult `Defaults.py` though for a complete listing of
-configuration variables that you can change.
-
-Mailman's installation procedure will never overwrite `mailman.cfg`.
-"""
-
-# This is the top-level run-time data directory. All other runtime data by
-# default lives under this directory.
-VAR_DIR = '$var_dir'
-
-# User name and id that owns the Mailman process and files.
-MAILMAN_UID = '$user_id'
-MAILMAN_USER = '$user_name'
-
-# Group name and id that owns the Mailman process and files.
-MAILMAN_GID = '$group_id'
-MAILMAN_GROUP = '$group_name'
-
-LANGUAGES = '$languages'