Hello All!
I have as set up by mga clamd-daemon running
Trouble is it is not using the /etc/cland.conf as the socket is not set up.
I need this because I run clamscan etc instream via the socket 3310.
So as an experiment I stopped it via systemctl stop clamav-daemon
Then just did cland &
using clamdtop I can now see it and when running scan clam against a reasonable block of file it runs quick which is more than I could say
before.
So I need to change the auto settings for systemd and clamav-daemon to just run clamd but I cannot see for the life of me how.
All this started moving to v7 as in v7 it worked correctly by picking up
the clamav.conf and fully acting on it v7 does NOT do that but as I say I cannot see how to change it.
Can any one help,
Hello All!
I have as set up by mga clamd-daemon running
Trouble is it is not using the /etc/cland.conf as the socket is not set up.
I need this because I run clamscan etc instream via the socket 3310.
So as an experiment I stopped it via systemctl stop clamav-daemon
Then just did cland &
using clamdtop I can now see it and when running scan clam against a reasonable block of file it runs quick which is more than I could say
before.
So I need to change the auto settings for systemd and clamav-daemon to just run clamd but I cannot see for the life of me how.
All this started moving to v7 as in v7 it worked correctly by picking up
the clamav.conf and fully acting on it v7 does NOT do that but as I say I cannot see how to change it.
I have as set up by mga clamd-daemon running
Trouble is it is not using the /etc/cland.conf as the socket is not
set up.
I need this because I run clamscan etc instream via the socket 3310.
So as an experiment I stopped it via systemctl stop clamav-daemon
Then just did cland &
using clamdtop I can now see it and when running scan clam against a
reasonable block of file it runs quick which is more than I could
say before.
So I need to change the auto settings for systemd and clamav-daemon
to just run clamd but I cannot see for the life of me how.
All this started moving to v7 as in v7 it worked correctly by
picking up the clamav.conf and fully acting on it v7 does NOT do
that but as I say I cannot see how to change it.
Can any one help,
I will give you some pointers and whatnot. I can not load maga7 clamd.
mcc software manager is not telling my why not.
I would like to see the clamd service file. Run
systemctl status clamav-daemon
Then paste the service file so I can look at it. File name is the file
name given on the Loaded: line.
Just installed it to see what's needed. As installed,
clamav-daemon.service and clamav-daemon.socket and
clamav-freshclam.service are all disabled.
Enabled and started all three with ...
[root@x3 ~]# systemctl enable clamav-daemon.socket
Created symlink /etc/systemd/system/sockets.target.wants/clamav-daemon.socket → /usr/lib/systemd/system/clamav-daemon.socket. [root@x3 ~]# systemctl
start clamav-daemon.socket [root@x3 ~]# systemctl enable clamav-daemon.service Created symlink /etc/systemd/system/multi-user.target.wants/clamav-daemon.service → /usr/lib/systemd/system/clamav-daemon.service. [root@x3 ~]# systemctl
start clamav-daemon.service [root@x3 ~]# systemctl enable clamav-freshclam.service Created symlink /etc/systemd/system/multi-user.target.wants/clamav-freshclam.service
→ /usr/lib/systemd/system/clamav-freshclam.service. [root@x3 ~]#
systemctl start clamav-freshclam.service
After the clamav-freshclam.service had updated the anti virus db,
running clamdscan /home/dave/Downloads/ shows it's working properly. Everything looks ok under clamdtop to me.
Did you enable and start all three parts and wait for the freshclam to finish updating the db?
All this started moving to v7 as in v7 it worked correctly by
picking up the clamav.conf and fully acting on it v7 does NOT do
that but as I say I cannot see how to change it.
Hello David!
Friday April 17 2020 19:11, David W. Hodgins wrote to All:
Just installed it to see what's needed. As installed, clamav-daemon.service and clamav-daemon.socket and clamav-freshclam.service are all disabled.
Enabled and started all three with ...
[root@x3 ~]# systemctl enable clamav-daemon.socket
Created symlink /etc/systemd/system/sockets.target.wants/clamav-daemon.socket → /usr/lib/systemd/system/clamav-daemon.socket. [root@x3 ~]# systemctl
start clamav-daemon.socket [root@x3 ~]# systemctl enable clamav-daemon.service Created symlink /etc/systemd/system/multi-user.target.wants/clamav-daemon.service → /usr/lib/systemd/system/clamav-daemon.service. [root@x3 ~]# systemctl start clamav-daemon.service [root@x3 ~]# systemctl enable clamav-freshclam.service Created symlink /etc/systemd/system/multi-user.target.wants/clamav-freshclam.service
→ /usr/lib/systemd/system/clamav-freshclam.service. [root@x3 ~]# systemctl start clamav-freshclam.service
After the clamav-freshclam.service had updated the anti virus db,
running clamdscan /home/dave/Downloads/ shows it's working properly. Everything looks ok under clamdtop to me.
Did you enable and start all three parts and wait for the freshclam to finish updating the db?
All this started moving to v7 as in v7 it worked correctly by
picking up the clamav.conf and fully acting on it v7 does NOT do
that but as I say I cannot see how to change it.
Should have been v6 to v7.
OK, just run
[vince@applewood ~]$ systemctl status clamav-daemon.socket
● clamav-daemon.socket - Socket for Clam AntiVirus userspace daemon
Loaded: loaded (/usr/lib/systemd/system/clamav-daemon.socket; disabled;
vendor preset: disabled)
Active: active (listening) since Tue 2020-04-07 22:54:30 BST; 1 weeks 2 days ago
Docs: man:clamd(8)
man:clamd.conf(5)
https://www.clamav.net/documents/
Listen: /var/lib/clamav/clamd.socket (Stream)
Apr 07 22:54:30 applewood.server systemd[1]: Starting Socket for Clam AntiVirus userspace daemon.
Apr 07 22:54:30 applewood.server systemd[1]: Listening on Socket for Clam AntiVirus userspace daemon.
Seem to 'imply' that instream is working but any request and even a telnet localhost 3310 is refused and also I could not locate the clamav.socket
file despite declaring it in clamav.conf
This process ie streaming is around 10+ times fater than just doing a basic service and then running clamscan *.* and as I run a BBS I get a lot of files in per day so need to use clamav at full speed.
Hello Bit!
Friday April 17 2020 18:59, Bit Twister wrote to All:
I would like to see the clamd service file. Run
systemctl status clamav-daemon
Then paste the service file so I can look at it. File name is the file
name given on the Loaded: line.
Hope this does it:
clamav-daemon.service - Clam AntiVirus userspace daemon
Loaded: loaded (/usr/lib/systemd/system/clamav-daemon.service; enabled; vendor preset: disabled)
and I can access the file pointed to at the top, not that it tells me a
lot!
On Fri, 17 Apr 2020 22:32:53 +0100, Vincent Coen wrote:
Friday April 17 2020 18:59, Bit Twister wrote to All:
clamav-daemon.service - Clam AntiVirus userspace daemon
Loaded: loaded (/usr/lib/systemd/system/clamav-daemon.service; enabled; >> vendor preset: disabled)
and I can access the file pointed to at the top, not that it tells me a
lot!
And that is exactly the file I was asking you to post. :)
On Fri, 17 Apr 2020 17:37:30 -0400, Vincent Coen <VBCoen@gmail.com>
wrote:
Hello David!
Friday April 17 2020 19:11, David W. Hodgins wrote to All:
Just installed it to see what's needed. As installed,systemctl
clamav-daemon.service and clamav-daemon.socket and
clamav-freshclam.service are all disabled.
Enabled and started all three with ...
[root@x3 ~]# systemctl enable clamav-daemon.socket
Created symlink
/etc/systemd/system/sockets.target.wants/clamav-daemon.socket →
/usr/lib/systemd/system/clamav-daemon.socket. [root@x3 ~]#
start clamav-daemon.socket [root@x3 ~]# systemctl enable→
clamav-daemon.service Created symlink
/etc/systemd/system/multi-user.target.wants/clamav-daemon.service
/usr/lib/systemd/system/clamav-daemon.service. [root@x3 ~]#systemctl
start clamav-daemon.service [root@x3 ~]# systemctl enable/etc/systemd/system/multi-user.target.wants/clamav-freshclam.service
clamav-freshclam.service Created symlink
→ /usr/lib/systemd/system/clamav-freshclam.service. [root@x3~]#
systemctl start clamav-freshclam.serviceproperly.
After the clamav-freshclam.service had updated the anti virus db,
running clamdscan /home/dave/Downloads/ shows it's working
Everything looks ok under clamdtop to me.freshclam to
Did you enable and start all three parts and wait for the
finish updating the db?
All this started moving to v7 as in v7 it worked correctly by
picking up the clamav.conf and fully acting on it v7 does NOT do
that but as I say I cannot see how to change it.
Should have been v6 to v7.
OK, just run
[vince@applewood ~]$ systemctl status clamav-daemon.socket
● clamav-daemon.socket - Socket for Clam AntiVirus userspace
daemon
Loaded: loaded (/usr/lib/systemd/system/clamav-daemon.socket;
disabled;
As shown above, it's disabled, so won't be created when booting.
vendor preset: disabled)
Active: active (listening) since Tue 2020-04-07 22:54:30 BST; 1
weeks 2 days ago
Docs: man:clamd(8)
man:clamd.conf(5)
https://www.clamav.net/documents/
Listen: /var/lib/clamav/clamd.socket (Stream)
The above line shows the socket is there. On my system ...
# ll /var/lib/clamav/clamd.socket
srw-rw-rw- 1 clamav clamav 0 Apr 17 13:56
/var/lib/clamav/clamd.socket=
Apr 07 22:54:30 applewood.server systemd[1]: Starting Socket for
Clam AntiVirus userspace daemon. Apr 07 22:54:30 applewood.server
systemd[1]: Listening on Socket for Clam AntiVirus userspace daemon.
Seem to 'imply' that instream is working but any request and even a
telnet localhost 3310 is refused and also I could not locate the
clamav.socket file despite declaring it in clamav.conf
It's set up to use a socket, not a tcp port with the default
configuration. For example ... $ cat ~/.bash_history | clamscan -
stdin: OK
This process ie streaming is around 10+ times fater than just doing
a basic service and then running clamscan *.* and as I run a BBS I
get a lot of files in per day so need to use clamav at full speed.
The default config is for scanning files on localhost. Are you trying
to submit files for scanning from other computers on your lan?
If so, I'll have to do some research to see what needs to be done for
that.
On Fri, 17 Apr 2020 17:59:25 -0500, Bit Twister wrote:
On Fri, 17 Apr 2020 22:32:53 +0100, Vincent Coen wrote:
Friday April 17 2020 18:59, Bit Twister wrote to All:
clamav-daemon.service - Clam AntiVirus userspace daemon
Loaded: loaded (/usr/lib/systemd/system/clamav-daemon.service;
enabled; vendor preset: disabled)
and I can access the file pointed to at the top, not that it tells
me a lot!
And that is exactly the file I was asking you to post. :)
Ok, finally have the clamav package installed. Had to use the command
line.
Looking in /usr/lib/systemd/system/clamav-daemon.service shows you
what systemd has to do to get a service to run. If it needs other services/sockets/... and when the service needs to run/start.
Requires=clamav-daemon.socket indicates that socket needs to be
enabled and working.
And this section
[Install]
WantedBy=multi-user.target
Also=clamav-daemon.socket
indicates that clamav-daemon service is to be started after the
network is up and clamav-daemon.socket is active.
After pkg install I did a
# systemctl --system daemon-reload
get the list of clamav units
$ systemctl list-unit-files | grep clamav
clamav-daemon.service disabled
clamav-freshclam.service disabled
clamav-daemon.socket disabled
Enabled each
systemctl enable clamav-daemon.service
systemctl enable clamav-freshclam.service
systemctl enable clamav-daemon.socket
started each
systemctl start clamav-daemon.socket
systemctl start clamav-freshclam.service
systemctl start clamav-daemon.service
systemctl status on each shows all active and no problems.
systemctl status clamav-daemon.service
shows man:clamd.conf so I located clamd.conf, saw the log file
location, and cat /var/log/clamav/clamd.log had no problems.
What that tells me is that clamd.conf was read by the clamav-daemon.
What would be nice is for you to provide a diff result of
your /etc/clamd.conf and the original to see what you changed.
On Fri, 17 Apr 2020 22:32:53 +0100, Vincent Coen wrote:
Hello Bit!
Friday April 17 2020 18:59, Bit Twister wrote to All:
I would like to see the clamd service file. Runfile
systemctl status clamav-daemon
Then paste the service file so I can look at it. File name is the
name given on the Loaded: line.
Hope this does it:
clamav-daemon.service - Clam AntiVirus userspace daemon
Loaded: loaded (/usr/lib/systemd/system/clamav-daemon.service;
enabled; vendor preset: disabled)
and I can access the file pointed to at the top, not that it tells
me a lot!
And that is exactly the file I was asking you to post. :)
Ok, finally have the clamav package installed. Had to use the command
line.
Looking in /usr/lib/systemd/system/clamav-daemon.service shows you
what systemd has to do to get a service to run. If it needs other services/sockets/... and when the service needs to run/start.
Requires=clamav-daemon.socket indicates that socket needs to be
enabled and working.
And this section
[Install]
WantedBy=multi-user.target
Also=clamav-daemon.socket
indicates that clamav-daemon service is to be started after the
network is up and clamav-daemon.socket is active.
After pkg install I did a
# systemctl --system daemon-reload
get the list of clamav units
$ systemctl list-unit-files | grep clamav
clamav-daemon.service disabled
clamav-freshclam.service disabled
clamav-daemon.socket disabled
Enabled each
systemctl enable clamav-daemon.service
systemctl enable clamav-freshclam.service
systemctl enable clamav-daemon.socket
started each
systemctl start clamav-daemon.socket
systemctl start clamav-freshclam.service
systemctl start clamav-daemon.service
systemctl status on each shows all active and no problems.
systemctl status clamav-daemon.service
shows man:clamd.conf so I located clamd.conf, saw the log file
location, and cat /var/log/clamav/clamd.log had no problems.
What that tells me is that clamd.conf was read by the clamav-daemon.
What would be nice is for you to provide a diff result of
your /etc/clamd.conf and the original to see what you changed.
What would be nice is for you to provide a diff result of
your /etc/clamd.conf and the original to see what you changed.
Just tried that but it is long as mine version goes back some time and the other is cland.conf.rpmsave
TCPSocket 3310
TCPAddr 127.0.0.1
StreamMaxLength 100M
#MaxThreads 64
#MaxQueue 200
ExcludePath ^/mnt/
ExcludePath ^/dev/
MaxDirectoryRecursion 25
#FollowDirectorySymlinks yes
#FollowFileSymlinks yes
ScanPDF yes
ScanSWF no
ScanXMLDOCS yes
ScanHWP3 yes
MaxScanSize 500M
MaxFileSize 300M
Hello Bit!
Saturday April 18 2020 01:19, Bit Twister wrote to All:
get the list of clamav units
$ systemctl list-unit-files | grep clamav
clamav-daemon.service disabled
clamav-freshclam.service disabled
clamav-daemon.socket disabled
Just down this (but with the clamav-daemon stopped) :
ystemctl list-unit-files | grep clam
clamav-daemon.service disabled clamav-freshclam.service enabled clamav-daemon.socket disabled
It looks like to problem was always the fact that socket was not enabled ?
Also it is not on the list of daemon services shown in the MCC, system, manage services.
Where is the list from which this facility takes its data (services) as clearly not using your systemctl list-unit-files
Could this be a bug in the Mga v7 build ?
So the socket is not enabled but I would be assuming that is the fix to my problem - or is it ?
On Sat, 18 Apr 2020 15:31:08 +0100, Vincent Coen wrote:
What would be nice is for you to provide a diff result of
your /etc/clamd.conf and the original to see what you changed.
Just tried that but it is long as mine version goes back some time
and the other is cland.conf.rpmsave
FYI: The only constant with Linux is change.
Rather than copying configuration files from old release to new
release
or doing an update and using the old release config file, I create
a change script to save the installed file, then make my changes.
That way I pickup any new configuration changes and am notified if
any of my changes were not made.
Seen lots of posts caused by old configuration file not compatible
with new release.
TCPSocket 3310
TCPAddr 127.0.0.1
StreamMaxLength 100M
#MaxThreads 64
#MaxQueue 200
ExcludePath ^/mnt/
ExcludePath ^/dev/
MaxDirectoryRecursion 25
#FollowDirectorySymlinks yes
#FollowFileSymlinks yes
ScanPDF yes
ScanSWF no
ScanXMLDOCS yes
ScanHWP3 yes
MaxScanSize 500M
MaxFileSize 300M
Those directive names looking pretty much the same.
]# grep -E "^LocalSocket|^#LocalSocket|^#TCP|^#Scan|TCP|^Scan" /etc/clamd.conf LocalSocket
/var/lib/clamav/clamd.socket #LocalSocketGroup
virusgroup #LocalSocketMode 660 # TCP port address. #TCPSocket 3310 #
TCP address. #TCPAddr 127.0.0.1 ScanPE yes #ScanELF yes ScanOLE2
yes #ScanPDF yes #ScanSWF yes #ScanXMLDOCS yes #ScanHWP3 yes ScanMail
yes #ScanPartialMessages yes ScanHTML yes ScanArchive yes
Not sure but I show a few more than yours.
Could this be a bug in the Mga v7 build ?
Nope. works as designed.
If you are not wanting to use systemd cli commands, and want a more comprehensible gui tool I suggest installing systemd-ui rpm
and see if running systemadm meets your requirements.
So the socket is not enabled but I would be assuming that is the fix
to my problem - or is it ?
How hard can it be to enable it, and stop/start your clamav services:
How do I make sure that the clamav-daemon.socket starts at boot along with the other clam daemons ?
and yes I did install and run systemadm ( which is not in the menu system ) but what ever. It is in /usr/share/applications/ so may be it neads a restart which can wait a few days.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 296 |
Nodes: | 16 (2 / 14) |
Uptime: | 25:15:29 |
Calls: | 6,646 |
Calls today: | 1 |
Files: | 12,193 |
Messages: | 5,327,791 |