summaryrefslogtreecommitdiff
path: root/staging/clamav/rc.d
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2012-06-14 18:16:51 +0200
committerMichał Masłowski <mtjm@mtjm.eu>2012-06-14 18:16:51 +0200
commitb32e36625b44b5c002c417ab4faf6311258c7671 (patch)
tree87f91f6f7d9ccb229f9c7613f5411534bd504f5e /staging/clamav/rc.d
parent1a274201c465801ed2271018f426f0eaf7098215 (diff)
parent35c30674b2b901077a809a6f1d8e5a0115098c8b (diff)
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Conflicts: community-staging/mplayer2/PKGBUILD community/pcmanfm/PKGBUILD extra/liblrdf/PKGBUILD extra/php-apc/PKGBUILD extra/sqlite/PKGBUILD kde-unstable/libkgapi/PKGBUILD kde-unstable/soprano/PKGBUILD multilib/lib32-libphobos-ldc/PKGBUILD multilib/lib32-pixman/PKGBUILD multilib/lib32-sqlite3/PKGBUILD
Diffstat (limited to 'staging/clamav/rc.d')
-rw-r--r--staging/clamav/rc.d66
1 files changed, 0 insertions, 66 deletions
diff --git a/staging/clamav/rc.d b/staging/clamav/rc.d
deleted file mode 100644
index 127c86c0f..000000000
--- a/staging/clamav/rc.d
+++ /dev/null
@@ -1,66 +0,0 @@
-#!/bin/bash
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-
-[[ -f /etc/conf.d/clamav ]] && source /etc/conf.d/clamav
-
-PID_FC=$(pidof -o %PPID /usr/bin/freshclam)
-PID_CD=$(pidof -o %PPID /usr/sbin/clamd)
-
-case "$1" in
- start)
- if [[ $START_CLAMD = yes ]]; then
- stat_busy "Starting ClamD"
- [[ -z $PID_CD ]] && /usr/sbin/clamd
- if [[ $? -gt 0 ]]; then
- stat_fail
- else
- add_daemon clamav
- stat_done
- fi
- fi
- sleep 1
- if [[ $START_FRESHCLAM = yes ]]; then
- stat_busy "Starting FreshClam"
- [[ -z $PID_FC ]] && /usr/bin/freshclam -p /run/clamav/freshclam.pid -d $FRESHCLAM_OPTS
- if [[ $? -gt 0 ]]; then
- stat_fail
- else
- add_daemon clamav
- stat_done
- fi
- fi
- ;;
- stop)
- if [[ $START_CLAMD = yes ]]; then
- stat_busy "Stopping ClamD"
- [[ -n $PID_CD ]] && kill $PID_CD &> /dev/null
- if [[ $? -gt 0 ]]; then
- stat_fail
- else
- rm_daemon clamav
- stat_done
- fi
- fi
-
- if [[ $START_FRESHCLAM = yes ]]; then
- stat_busy "Stopping FreshClam"
- [[ -n $PID_FC ]] && kill $PID_FC &> /dev/null
- if [[ $? -gt 0 ]]; then
- stat_fail
- else
- rm_daemon clamav
- stat_done
- fi
- fi
- ;;
- restart)
- $0 stop
- sleep 2
- $0 start
- ;;
- *)
- echo "usage: $0 {start|stop|restart}"
-esac
-exit 0