Koozali.org: home of the SME Server

help starting antivirus on reboot

Steven Thomson

help starting antivirus on reboot
« on: October 27, 2002, 05:03:00 PM »
I have Avmailgate running on e-smith 5.1.2
Runs like a charm except if I have to reboot, the mail scanner/forwarder don't start up and hence my mail bounces until I manually start them.
I need to start "/usr/sbin/avgated" and "/usr/sbin/avgatefwd"

Jon Blakely

Re: help starting antivirus on reboot
« Reply #1 on: October 28, 2002, 01:33:46 AM »
Steven,

You can add
/usr/sbin/avgated
/usr/sbin/avgatefwd

to

/etc/rc.d/rc.local

Jon

Terry Brummell

Re: help starting antivirus on reboot
« Reply #2 on: October 28, 2002, 02:13:46 AM »
I am curious as I'm in the same boat....is that a templated file?

Jon Blakely

Re: help starting antivirus on reboot
« Reply #3 on: October 28, 2002, 04:38:32 AM »
No, its not templated. Just add what you what at the bottom of the file.

Jon

Harro Bruins

Re: help starting antivirus on reboot
« Reply #4 on: October 29, 2002, 04:34:46 PM »
/etc/rc.d/init.d/avmgate is the script you need to use for starting AVMailGate

Make a link to this script in /etc/rc.d/rc7.d map and have the ease of all.

ln -s /etc/rc.d/init.d/avmgate /etc/rc.d/rc7.d/S82avmgate

for starting.
and

ln -s /etc/rc.d/init.d/avmgate /etc/rc.d/rc6.d/K82avmgate
ln -s /etc/rc.d/init.d/avmgate /etc/rc.d/rc0.d/K82avmgate

for killing.

That should be enough.

Harro