blob: 0b10892ede19003a48b693d0d754c62c8fe25f90 (
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
31
32
|
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: qmail.sh,v 1.4 2004/04/27 03:05:09 schmonz Exp $
#
# PROVIDE: mail qmail
# REQUIRE: LOGIN
. /etc/rc.subr
name="qmail"
rcvar=${name}
required_files="@QMAILDIR@/control/me"
command="@QMAILDIR@/bin/qmail-send"
start_precmd="qmail_precmd"
extra_commands="reload"
if [ -z "$qmail_flags" ]; then
qmail_flags="./Mailbox"
fi
qmail_precmd()
{
# qmail-start(8) starts the various qmail processes, then exits.
# qmail-send(8) is the process we want to signal later.
command="@SETENV@ - PATH=@QMAILDIR@/bin:$PATH qmail-start '$qmail_flags' splogger qmail"
command_args="&"
rc_flags=""
}
load_rc_config $name
run_rc_command "$1"
|