From c831613bece89d3e9dc6dacc9cbee14ee1e9712e Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Sat, 28 Sep 2013 19:02:28 +0300 Subject: [PATCH] clamav-daemon check --- bin/v-list-sys-services | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/bin/v-list-sys-services b/bin/v-list-sys-services index 59f7a2fd..fbf213fd 100755 --- a/bin/v-list-sys-services +++ b/bin/v-list-sys-services @@ -117,10 +117,17 @@ fi # ANTIVIRUS service=$ANTIVIRUS_SYSTEM if [ ! -z "$service" ] && [ "$service" != 'no' ]; then - if [ "$ANTIVIRUS_SYSTEM" = 'clamav' ]; then - service='clamd' + if [ -e "/etc/redhat-release" ]; then + if [ "$ANTIVIRUS_SYSTEM" = 'clamav' ];then + service='clamd' + fi + get_srv_state $service + else + if [ "$ANTIVIRUS_SYSTEM" = 'clamav-daemon' ];then + clam_proc_name='clamd' + fi + get_srv_state $service $clam_proc_name fi - get_srv_state $service str="$str\nNAME='$service' SYSTEM='email antivirus' STATE='$state'" str="$str CPU='$cpu' MEM='$mem' RTIME='$rtime'" fi