2004-02-03 07:46:21 +01:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2006-04-06 17:20:18 +02:00
|
|
|
# $FreeBSD$
|
2004-02-03 07:46:21 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
# PROVIDE: freshclam
|
2005-01-12 18:57:58 +01:00
|
|
|
# REQUIRE: LOGIN clamd
|
2004-02-03 07:46:21 +01:00
|
|
|
# BEFORE: mail
|
2006-02-20 21:47:50 +01:00
|
|
|
# KEYWORD: shutdown
|
2004-02-03 07:46:21 +01:00
|
|
|
|
|
|
|
#
|
2004-10-14 11:30:47 +02:00
|
|
|
# Add the following lines to /etc/rc.conf to enable the freshclam daemon:
|
2004-02-03 07:46:21 +01:00
|
|
|
#
|
2009-07-15 18:56:10 +02:00
|
|
|
# clamav_freshclam_enable="YES"
|
|
|
|
# clamav_freshclam_flags="<set as needed>"
|
2004-02-03 07:46:21 +01:00
|
|
|
#
|
2004-05-26 12:15:19 +02:00
|
|
|
# See freshclam(1) for flags
|
2004-02-03 07:46:21 +01:00
|
|
|
#
|
|
|
|
|
2010-03-27 01:15:24 +01:00
|
|
|
. /etc/rc.subr
|
2004-02-03 07:46:21 +01:00
|
|
|
|
|
|
|
name=clamav_freshclam
|
2012-01-14 09:57:23 +01:00
|
|
|
rcvar=clamav_freshclam_enable
|
2004-02-03 07:46:21 +01:00
|
|
|
|
|
|
|
command=%%PREFIX%%/bin/freshclam
|
2005-01-12 18:57:58 +01:00
|
|
|
pidfile=%%RUNDIR%%/freshclam.pid
|
2006-04-06 17:20:18 +02:00
|
|
|
command_args="--daemon -p ${pidfile}"
|
2004-12-22 03:10:12 +01:00
|
|
|
required_dirs=%%DBDIR%%
|
2004-05-26 12:15:19 +02:00
|
|
|
required_files=%%PREFIX%%/etc/freshclam.conf
|
2004-02-03 07:46:21 +01:00
|
|
|
|
2004-10-14 11:30:47 +02:00
|
|
|
# read settings, set default values
|
|
|
|
load_rc_config "$name"
|
|
|
|
: ${clamav_freshclam_enable="NO"}
|
2004-02-03 07:46:21 +01:00
|
|
|
|
|
|
|
run_rc_command "$1"
|