summaryrefslogtreecommitdiff
blob: de54c6fd8a613434254d2cc64821c2c4b697221f (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
28
29
30
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/mail-mta/qmail-ldap/files/1.03-r3/qmail-control,v 1.2 2004/07/14 22:34:32 agriffis Exp $

opts="start stop restart reload"

start() {
    ebegin "Starting qmail mta ..."
    svc -u /service/qmail-{smtpd,send,qmqp,qmtp}
    eend $?
    ebegin "Starting qmail mta logging ..."
    svc -u /service/qmail-{smtpd,send,qmqp,qmtp}/log
    eend $?
}

stop() {
    ebegin "Stopping qmail mta ..."
    svc -d /service/qmail-{smtpd,send,qmqp,qmtp}
    eend $?
    ebegin "Stopping qmail mta logging ..."
    svc -d /service/qmail-{smtpd,send,qmqp,qmtp}/log
    eend $?
}

reload() {
    ebegin "Reloading 'locals' and 'virtualdomains' control files."
    svc -h /service/qmail-send
    eend $?
}