We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4a45e7 commit c831613Copy full SHA for c831613
bin/v-list-sys-services
@@ -117,10 +117,17 @@ fi
117
# ANTIVIRUS
118
service=$ANTIVIRUS_SYSTEM
119
if [ ! -z "$service" ] && [ "$service" != 'no' ]; then
120
- if [ "$ANTIVIRUS_SYSTEM" = 'clamav' ]; then
121
- service='clamd'
+ if [ -e "/etc/redhat-release" ]; then
+ 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
129
+ get_srv_state $service $clam_proc_name
130
fi
- get_srv_state $service
131
str="$str\nNAME='$service' SYSTEM='email antivirus' STATE='$state'"
132
str="$str CPU='$cpu' MEM='$mem' RTIME='$rtime'"
133
0 commit comments