blob: 7bd5a095e838527602dac8f0b8705795c019c3f5 (
plain) (
blame)
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
|
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: amavis_milter
# REQUIRE: amavisd
# BEFORE: mail
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable amavis-milter:
#
#amavis_milter_enable="YES"
#
. %%RC_SUBR%%
name=amavis_milter
rcvar=`set_rcvar`
command=%%PREFIX%%/sbin/amavis-milter
required_files=%%PREFIX%%/etc/amavisd.conf
# set defaults
amavis_milter_enable=${amavis_milter_enable:-"NO"}
amavis_milter_flags=${amavis_milter_flags:-"-D -p %%AMAVISDIR%%/amavis-milter.sock"}
amavis_milter_user=${amavis_milter_user:-"%%AMAVISUSER%%"}
load_rc_config $name
run_rc_command "$1"
|