blob: 873fe7b7af5b978ec1d169e26424efcecdcd1300 (
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
|
#!/bin/sh
#
# $OpenBSD: spamd,v 1.8 2017/03/23 10:10:54 ajacoutot Exp $
daemon="/usr/libexec/spamd"
. /etc/rc.d/rc.subr
pexp="spamd: \[priv\].*"
rc_reload=NO
rc_pre() {
if [ X"${spamd_black}" != X"NO" ]; then
daemon_flags="-b ${daemon_flags}"
spamd_setup_flags="-b"
fi
}
rc_start() {
${rcexec} "${daemon} ${daemon_flags}" || return 1
/usr/libexec/spamd-setup -D ${spamd_setup_flags}
}
rc_cmd $1
|