summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Hadaway <raker@gentoo.org>2003-02-03 22:44:54 +0000
committerNick Hadaway <raker@gentoo.org>2003-02-03 22:44:54 +0000
commitf06988831eacadaac9dab490222d590be95967ec (patch)
tree09fc49f1fe3a6900783b9ff290e75c4b7adbb55a /net-mail/mailman/files
parentchanged digest files for 1.0.11 (diff)
downloadgentoo-2-f06988831eacadaac9dab490222d590be95967ec.tar.gz
gentoo-2-f06988831eacadaac9dab490222d590be95967ec.tar.bz2
gentoo-2-f06988831eacadaac9dab490222d590be95967ec.zip
Added a mailman rc file as suggested by Norberto Bensa on bug #14465
Diffstat (limited to 'net-mail/mailman/files')
-rw-r--r--net-mail/mailman/files/mailman.rc27
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..10184422265f
--- /dev/null
+++ b/net-mail/mailman/files/mailman.rc
@@ -0,0 +1,27 @@
+#!/sbin/runscript
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+
+depend() {
+ need net
+ use logger
+}
+
+start() {
+ ebegin "Starting mailman"
+ su - mailman -c 'bin/mailmanctl 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 $?
+}
+