All pastes #57261 Raw Edit

Unnamed

public text v1 · immutable
#57261 ·published 2006-05-20 04:09 UTC
rendered paste body
#!/bin/sh
#
# $FreeBSD: ports/security/clamav/files/clamav-clamd.sh.in,v 1.2 2006/02/20 20:47:37 dougb Exp $
#

# PROVIDE: clamd
# REQUIRE: LOGIN
# BEFORE: mail
# KEYWORD: shutdown

#
# Add the following lines to /etc/rc.conf to enable clamd:
#
#clamav_clamd_enable="YES"
#
# See clamd(8) for flags
#

. /etc/rc.subr

name=clamav_clamd
rcvar=`set_rcvar`

command=/usr/local/sbin/clamd
pidfile=/var/spool/MIMEDefang/clamd.pid
required_dirs=/var/db/clamav
required_files=/usr/local/etc/clamd.conf

# read settings, set default values
load_rc_config "$name"
: ${clamav_clamd_enable="NO"}
: ${clamav_clamd_flags=""}
: ${clamav_clamd_socket="/var/spool/MIMEDefang/clamd.sock"}

run_rc_command "$1"