2009-02-26 22:04:19 +01:00
|
|
|
#!/sbin/runscript
|
2012-01-18 18:59:47 +01:00
|
|
|
# Copyright 1999-2012 Gentoo Foundation
|
2009-02-26 22:04:19 +01:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# $Header: /var/cvsroot/gentoo-x86/net-mail/mailman/files/mailman.rc,v 1.5 2004/07/14 23:50:52 agriffis Exp $
|
|
|
|
|
|
|
|
depend() {
|
|
|
|
need net
|
|
|
|
use logger
|
|
|
|
}
|
|
|
|
|
|
|
|
start() {
|
|
|
|
ebegin "Starting mailman"
|
|
|
|
su - mailman -c 'bin/mailmanctl -s start' >/dev/null 2>&1
|
|
|
|
eend $?
|
|
|
|
}
|
|
|
|
|
|
|
|
stop() {
|
|
|
|
ebegin "Stopping mailman"
|
|
|
|
su - mailman -c 'bin/mailmanctl stop' >/dev/null 2>&1
|
|
|
|
eend $?
|
|
|
|
}
|
|
|
|
|
|
|
|
svc_restart() {
|
|
|
|
ebegin "Restarting mailman"
|
|
|
|
su - mailman -c 'bin/mailmanctl restart' >/dev/null 2>&1
|
|
|
|
eend $?
|
|
|
|
}
|