mirror of https://github.com/Cisco-Talos/clamav
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
260 B
19 lines
260 B
![]()
20 years ago
|
#!/bin/sh
|
||
|
|
||
|
CONF_FILE=/usr/local/etc/clamd.conf
|
||
|
|
||
|
if [ ! -f $CONF_FILE ]; then
|
||
|
exit 0
|
||
|
fi
|
||
|
|
||
|
case "$1" in
|
||
|
start)
|
||
|
/usr/local/sbin/clamd
|
||
|
;;
|
||
|
stop)
|
||
|
kill `ps -ef | awk '$NF ~ /clamd/ { print $2 }'` > /dev/null 2>&1
|
||
|
;;
|
||
|
*)
|
||
|
echo "usage: $0 {start|stop}"
|
||
|
esac
|