summaryrefslogtreecommitdiff
blob: 086c7a66ecc7fa97c1e395ad94e54e276e59c1aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/sbin/runscript
# Copyright 1999-2003 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 -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 $?
}