summaryrefslogtreecommitdiffstats
path: root/system/clamav/rc.clamav
diff options
context:
space:
mode:
author Yalla-One2010-05-13 00:39:54 +0200
committer Robby Workman2010-05-13 00:39:54 +0200
commit8b9fb0d47dbe3761753a21493b737829a96bd146 (patch)
tree231be308f496929a9d0265572199c4e80670da96 /system/clamav/rc.clamav
parent08a7ad2bc91317a6627d5de166a66fe99a152d66 (diff)
downloadslackbuilds-8b9fb0d47dbe3761753a21493b737829a96bd146.tar.gz
system/clamav: Updated for version 0.95.2
Diffstat (limited to 'system/clamav/rc.clamav')
-rw-r--r--system/clamav/rc.clamav58
1 files changed, 0 insertions, 58 deletions
diff --git a/system/clamav/rc.clamav b/system/clamav/rc.clamav
deleted file mode 100644
index 5197a1c4de..0000000000
--- a/system/clamav/rc.clamav
+++ /dev/null
@@ -1,58 +0,0 @@
-#!/bin/sh
-# Start/stop/restart clamav.
-# $Id: rc.clamav,v 1.1 2007/02/14 10:29:03 root Exp root $
-# Author: Eric Hameleers <alien@slackware.com>
-# ---------------------------------------------------------------------------
-# Slightly modified by Robby Workman <rworkman@slackbuilds.org>
-# to replace backticks ( s/`command`/$(command)/ )
-
-# Set to '1' if you want milter support:
-MILTER=0
-
-# Start clamav:
-clamav_start() {
- if [ -x /usr/sbin/clamd ]; then
- echo -n "Starting clamd daemon: /usr/sbin/clamd "
- /usr/sbin/clamd
- echo "."
- # Give clamd a chance to create the socket
- sleep 1
- echo -n "Starting freshclam daemon: /usr/bin/freshclam -d -l /var/log/freshclam.log "
- /usr/bin/freshclam -d -l /var/log/freshclam.log
- echo "."
- if [ "$MILTER" == "1" ]; then
- echo -n "Starting clamav-milter daemon: /usr/sbin/clamav-milter -dblo --max-children=2 local:/var/run/clamav/clmilter.sock "
- /usr/sbin/clamav-milter -dblo --max-children=2 local:/var/run/clamav/clmilter.sock
- echo "."
- fi
- fi
-}
-
-# Stop clamav:
-clamav_stop() {
- kill $(cat /var/run/clamav/clamd.pid)
- #killall freshclam
- kill $(cat /var/run/clamav/freshclam.pid)
- [ "$MILTER" == "1" ] && killall clamav-milter
-}
-
-# Restart clamav:
-clamav_restart() {
- clamav_stop
- sleep 1
- clamav_start
-}
-
-case "$1" in
-'start')
- clamav_start
- ;;
-'stop')
- clamav_stop
- ;;
-'restart')
- clamav_restart
- ;;
-*)
- echo "usage $0 start|stop|restart"
-esac