freebsd-ports/security/avmailgate/files/avmailgate.sh
Edwin Groothuis 34608fcaa3 Port for H+B EDV avmailgate
AntiVir MailGate for  FreeBSD protects your  electronic
	post office against viruses.

	It is  working  with  numerous common  Mail Transport Agents
	(MTA), like  sendmail,  postfix,  qmail and exim.  Operates
	at high speed, is easy to configure and  checks both incoming
	and outgoing emails.

PR:		ports/34461
Submitted by:	Oliver Breuninger <ob@breuninger.org>
2003-04-05 09:40:55 +00:00

26 lines
517 B
Bash

#! /bin/sh
case "$1" in
start)
echo "Initializing SMTP port. (avmailgate)"
/usr/local/sbin/avgated -A /usr/local/etc/antivir/avmailgate.acl -C /usr/local/etc/antivir/avmailgate.conf &
/usr/local/sbin/avgatefwd -C /usr/local/etc/antivir/avmailgate.conf &
;;
stop)
echo -n "Shutting down SMTP port:"
echo
kill `cat /var/run/avmailgate_d.pid`
kill `cat /var/run/avmailgate_fwd.pid`
;;
restart)
"$0" stop
"$0" start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
;;
esac
exit 0