Blame clamav-notify-servers
|
cvsextras |
47272f4 |
#! /bin/bash
|
|
cvsextras |
47272f4 |
|
|
cvsextras |
47272f4 |
# Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
|
|
cvsextras |
47272f4 |
#
|
|
cvsextras |
47272f4 |
# This program is free software; you can redistribute it and/or modify
|
|
cvsextras |
47272f4 |
# it under the terms of the GNU General Public License as published by
|
|
cvsextras |
47272f4 |
# the Free Software Foundation; version 2 of the License.
|
|
cvsextras |
47272f4 |
#
|
|
cvsextras |
47272f4 |
# This program is distributed in the hope that it will be useful,
|
|
cvsextras |
47272f4 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
cvsextras |
47272f4 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
cvsextras |
47272f4 |
# GNU General Public License for more details.
|
|
cvsextras |
47272f4 |
#
|
|
cvsextras |
47272f4 |
# You should have received a copy of the GNU General Public License
|
|
cvsextras |
47272f4 |
# along with this program; if not, write to the Free Software
|
|
cvsextras |
47272f4 |
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
cvsextras |
47272f4 |
|
|
cvsextras |
47272f4 |
# Usage: clamav-notify-servers
|
|
cvsextras |
47272f4 |
|
|
cvsextras |
47272f4 |
CFGFILE=/etc/sysconfig/clamav-servers
|
|
cvsextras |
47272f4 |
BASE=/var/lock/subsys/clamd.
|
|
cvsextras |
47272f4 |
INITRDDIR=/etc/init.d
|
|
cvsextras |
47272f4 |
|
|
cvsextras |
47272f4 |
ok=1
|
|
cvsextras |
47272f4 |
|
|
|
eaffb5a |
f=/usr/sbin/clamav-notify-servers.local
|
|
|
eaffb5a |
test ! -e "$f" || . "$f"
|
|
|
eaffb5a |
|
|
cvsextras |
47272f4 |
for i in ${BASE}*; do
|
|
cvsextras |
47272f4 |
test -e "$i" || continue
|
|
cvsextras |
47272f4 |
|
|
cvsextras |
47272f4 |
srv=${INITRDDIR}/clamd.${i##${BASE}}
|
|
cvsextras |
47272f4 |
test -e "$srv" || continue
|
|
cvsextras |
47272f4 |
|
|
cvsextras |
47272f4 |
"$srv" reload || ok=
|
|
cvsextras |
47272f4 |
done >/dev/null
|
|
cvsextras |
47272f4 |
|
|
cvsextras |
47272f4 |
test "$ok"
|