diff options
Diffstat (limited to 'misc')
| -rw-r--r-- | misc/mailman.in | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/misc/mailman.in b/misc/mailman.in new file mode 100644 index 000000000..f941e075a --- /dev/null +++ b/misc/mailman.in @@ -0,0 +1,48 @@ +#!/bin/sh +# +# mailman This shell script that starts and stops GNU Mailman. +# +# Copyright (C) 2001 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# +# chkconfig: 2345 98 12 +# description: Mailman is the GNU Mailing List Manager, a program that \ +# manages electronic mail discussion groups. For more \ +# on GNU Mailman see http://www.list.org +# processname: mailmanctl +# config: @prefix@/Mailman/mm_cfg.py +# pidfile: @prefix@/data/qrunner.pid + +PYTHON=@PYTHON@ +MAILMANHOME=@prefix@ +MAILMANCTL=$MAILMANHOME/bin/mailmanctl + +case "$1" in +'start') + #rm -f $MAILMANHOME/locks/* + $PYTHON $MAILMANCTL -s -q start + ;; + +'stop') + $PYTHON $MAILMANCTL -q stop + ;; + +'restart') + $PYTHON $MAIMLANCTL -q restart + ;; + +esac +exit 0 |
