Skip to content

Commit c831613

Browse files
committed
clamav-daemon check
1 parent f4a45e7 commit c831613

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

bin/v-list-sys-services

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,17 @@ fi
117117
# ANTIVIRUS
118118
service=$ANTIVIRUS_SYSTEM
119119
if [ ! -z "$service" ] && [ "$service" != 'no' ]; then
120-
if [ "$ANTIVIRUS_SYSTEM" = 'clamav' ]; then
121-
service='clamd'
120+
if [ -e "/etc/redhat-release" ]; then
121+
if [ "$ANTIVIRUS_SYSTEM" = 'clamav' ];then
122+
service='clamd'
123+
fi
124+
get_srv_state $service
125+
else
126+
if [ "$ANTIVIRUS_SYSTEM" = 'clamav-daemon' ];then
127+
clam_proc_name='clamd'
128+
fi
129+
get_srv_state $service $clam_proc_name
122130
fi
123-
get_srv_state $service
124131
str="$str\nNAME='$service' SYSTEM='email antivirus' STATE='$state'"
125132
str="$str CPU='$cpu' MEM='$mem' RTIME='$rtime'"
126133
fi

0 commit comments

Comments
 (0)