aboutsummaryrefslogtreecommitdiff
path: root/security/amavisd-new/files/amavisd.sh.tmpl
blob: 58b1a49c57090fbf83d7b00cc717a8e05a9f476c (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
33
34
35
36
37
38
39
40
41
42
#!/bin/sh
#
# $FreeBSD: /tmp/pcvs/ports/security/amavisd-new/files/Attic/amavisd.sh.tmpl,v 1.7 2004-07-18 10:05:50 vanilla Exp $
#

# PROVIDE: amavisd
# REQUIRE: LOGIN
# BEFORE: mail
# KEYWORD: FreeBSD shutdown

#
# Add the following lines to /etc/rc.conf to enable amavisd:
#
#amavisd_enable="YES"
#

. %%RC_SUBR%%

name=amavisd
rcvar=`set_rcvar`

command=%%PREFIX%%/sbin/amavisd > /dev/null 2>&1

amavisd_flags="-u %%AMAVISUSER%%"

pidfile=%%AMAVISDIR%%/amavisd.pid
required_files=%%PREFIX%%/etc/amavisd.conf

stop_postcmd=stop_postcmd

stop_postcmd()
{
  rm -f $pidfile
}

# set defaults

amavisd_enable=${amavisd_enable:-"NO"}
amavisd_flags=${amavisd_flags:-""}

load_rc_config $name
run_rc_command "$1"