All,

Running Amavisd-new under FreeBSD 5.3-Release.

I've just started using the aforementioned script, and it's not doing
exactly what I expect.

In particular, when I run it either as root or vscan (the amavis user) like
so:

# /usr/local/etc/rc.d/amavisd.sh restart

I get 

     .: Can't open %%RC_SUBR%%: No such file or directory

The script is below - I have no idea what the line that reads

     . %%RC_SUBR%%

is doing, but it seems to be the culprit.

Any thoughts?


Thanks,

Kurt

zetmail3# cat /usr/ports/security/amavisd/files/amavisd.sh
#!/bin/sh
#
# $FreeBSD: ports/security/amavisd/files/amavisd.sh,v 1.4 2004/05/30
11:33:25 pav Exp $
#

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

prefix=%%PREFIX%%

# Define these amavisd_* variables in one of these files:
#       /etc/rc.conf
#       /etc/rc.conf.local
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
amavisd_enable=no
amavisd_flags=""
amavisd_user=%%AMAVISUSER%%

. %%RC_SUBR%%

name="amavisd"
rcvar=`set_rcvar`
start_precmd="remove_socket"
stop_postcmd="remove_socket"
command=${prefix}/sbin/amavisd
command_arg="> /dev/null 2>&1"
command_interpreter="%%PERL%%"
pidfile="/var/amavis/amavisd.pid"

# Remove the AMaViSd Socket
remove_socket()
{
        if [ -S /var/amavis/amavisd.sock ]; then
                rm -f /var/amavis/amavisd.sock
        fi
}

load_rc_config $name
run_rc_command "$1"



  



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to