diff options
Diffstat (limited to 'net-mail/mailman/files/mailman.rc')
-rw-r--r-- | net-mail/mailman/files/mailman.rc | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/net-mail/mailman/files/mailman.rc b/net-mail/mailman/files/mailman.rc new file mode 100644 index 000000000000..0bc8d536c9a6 --- /dev/null +++ b/net-mail/mailman/files/mailman.rc @@ -0,0 +1,27 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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 $? +} |