#!/bin/bash

RUNLEVEL=3
NEEDS="+remote_fs +network"
PROGRAM="/bin/false"

. /etc/init.d/smgl_init

PYTHON=/usr/bin/python
MAILMANHOME=/usr/share/mailman
MAILMANCTL=$MAILMANHOME/bin/mailmanctl

start() {
    echo "Starting Mailman..."
    $PYTHON $MAILMANCTL -s -q start
    evaluate_retval
}

stop() {
    echo "Stopping Mailman..."
    $PYTHON $MAILMANCTL -q stop
    evaluate_retval
}

restart() {
    echo "Restarting Mailman..."
    $PYTHON $MAILMANCTL -q restart
    evaluate_retval
}
