1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-05 06:27:37 +00:00
freebsd-ports/security/amavisd-new/files/amavisd.sh.in
Dejan Lesjak 0b8e4ca917 Update amavisd-new to 2.3.3. [1]
Start amavisd as root so that it works both with and without chroot. [2]

PR:		ports/85241 [1], ports/83988 [2]
Submitted by:	Blaz Zupan (maintainer)
2005-08-29 04:41:23 +00:00

39 lines
532 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# 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
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"}
load_rc_config $name
run_rc_command "$1"