From: Kurt B. <KB...@ze...> - 2005-12-01 22:15:53
|
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" |