linamh/net-mail/mailman/files/mailman.rc
Mario Fetka 2dba70de84 net-mail/mailman: Add patches and Bump to patch level 1
(Portage version: 2.2.0_alpha84/git/Linux x86_64, RepoMan options: --force, unsigned Manifest commit)
2012-01-18 18:59:47 +01:00

28 lines
597 B
Plaintext

#!/sbin/runscript
# Copyright 1999-2012 Gentoo Foundation
# 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 $?
}