#357857
Anonymous
Participant

Try this:
Create a directory in /Library/StartupItems – name it Amavis
Make sure permissions are correct.
Inside the Amavis directory, create a file: Amavis
Insert this into Amavis file:

#!/bin/sh

. /etc/rc.common

StartService ()
{
if [ “${Amavis:=-NO-}” = “-YES-” ]; then
ConsoleMessage “Starting Amavis”
su clamav -c amavisd
freshclam -d -c 2 -l /var/log/clam-update.log
fi
}

StopService ()
{
ConsoleMessage “Stopping Amavis”
}

RunService “$1”

Inside the Amavis directory, create a file: StartupParameters.plist
Insert this into StartupParameters.plist:

{
Description = “Whatever You Want It To Say”;
Provides = (“Amavis”);
Requires = (“Resolver”);
Preference = “None”;
Messages =
{
start = “Starting Amavis”;
stop = “Stopping Amavis”;
};
}

Ceate a line in /etc/hostconfg and add this to the bottom:

Amavis=-YES-

Hope this does it.

Comments are closed