2004-01-13 17:22:04 +01:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2006-04-07 12:10:20 +02:00
|
|
|
# $FreeBSD$
|
2004-01-13 17:22:04 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
# PROVIDE: freshclam
|
2005-01-12 19:22:56 +01:00
|
|
|
# REQUIRE: LOGIN clamd
|
2004-01-13 17:22:04 +01:00
|
|
|
# BEFORE: mail
|
2006-02-20 21:47:50 +01:00
|
|
|
# KEYWORD: shutdown
|
2004-01-13 17:22:04 +01:00
|
|
|
|
|
|
|
#
|
2004-11-04 23:49:52 +01:00
|
|
|
# Add the following lines to /etc/rc.conf to enable the freshclam daemon:
|
2004-01-13 17:22:04 +01:00
|
|
|
#
|
2004-05-25 01:02:23 +02:00
|
|
|
#clamav_freshclam_enable="YES"
|
2004-01-13 17:22:04 +01:00
|
|
|
#
|
|
|
|
# See freshclam(1) for flags
|
|
|
|
#
|
|
|
|
|
|
|
|
. %%RC_SUBR%%
|
|
|
|
|
2004-05-25 01:02:23 +02:00
|
|
|
name=clamav_freshclam
|
2004-01-13 17:22:04 +01:00
|
|
|
rcvar=`set_rcvar`
|
|
|
|
|
|
|
|
command=%%PREFIX%%/bin/freshclam
|
2005-01-12 19:22:56 +01:00
|
|
|
pidfile=%%RUNDIR%%/freshclam.pid
|
2006-04-07 12:10:20 +02:00
|
|
|
command_args="--daemon -p ${pidfile}"
|
2004-12-22 03:10:12 +01:00
|
|
|
required_dirs=%%DBDIR%%
|
2004-01-13 17:22:04 +01:00
|
|
|
required_files=%%PREFIX%%/etc/freshclam.conf
|
|
|
|
|
2004-11-04 23:49:52 +01:00
|
|
|
# read settings, set default values
|
|
|
|
load_rc_config "$name"
|
|
|
|
: ${clamav_freshclam_enable="NO"}
|
|
|
|
: ${clamav_freshclam_flags=""}
|
2004-01-13 17:22:04 +01:00
|
|
|
|
|
|
|
run_rc_command "$1"
|