#!/bin/sh

# clamav

# for RedHat 7.3 on a Gericom 1st Supersonic
# 2003-08-14 Michael Besteck (a.b.c@gmx.net)
# based on http://sxs.solo-unix.com.ar/administration/clamav.html

# chkconfig: 135 9 93
# description: The Clam anti-virus daemon

DAEMON=/usr/local/sbin/clamd
test -x $DAEMON || exit 5

case "$1" in
    start)
	echo "Starting `$DAEMON -V`"
	$DAEMON

	;;
    stop)
	echo "Shutting down `$DAEMON -V`"
	killall $DAEMON

	;;
    restart)
	$0 stop
	$0 start

	;;
    *)
	echo "Usage: $0 {start|stop|restart}"
	exit 1
	;;
esac
