Ubuntu 16.04.1; ClamAV 0.99 clamd.socket not created on start

Chris cpollock at embarqmail.com
Sun Aug 21 03:07:13 UTC 2016


On Sun, 2016-08-21 at 04:00 +0200, Ralf Mardorf wrote:
> On Sat, 20 Aug 2016 20:19:38 -0500, Chris wrote:
> > 
> > Prior to my upgrade to 16.04.1LTS from 14.04.4LTS [snip]
> > 
> > Starting the daemon by running sudo /etc/init.d/clamav-daemon start
> > does not create the socket file.
> > 
> > Running sudo service clamav-daemon start does not create the
> > socket.
> > 
> > [snip]
> Your 16.04 does not use upstart anymore, it switched to systemd.
> 
> To check the status run
> 
>   systemctl status clamav-daemon.service
> 
> regarding the Ubuntu policy it should be automatically started, when
> installing the package, however to enable start during startup run
> 
>   sudo systemctl enable clamav-daemon.service
> 
> to start or restart it, if a session is running, run
> 
>   sudo systemctl restart clamav-daemon.service
> 
> Unfortunately mentioning systemd is not worth a single note:
> 
> https://wiki.ubuntu.com/XenialXerus/ReleaseNotes
> 
> The reason likely is, that the people who are allowed to edit the
> Wiki,
> just cared about release notes regarding 15.x to 16.04, ignoring that
> Ubuntu users might upgrade from one LTS to another.
> 
> If you google for something like
> 
>   ubuntu release upgrade 14 to 16
> 
> the above link already is the most informative link. I was willing
> to correct a few Wikis, but even if you apply for membership at
> https://launchpad.net/~ubuntu-wiki-editors/+members nothing happens,
> let alone the selfish and ignorant people from
> https://launchpad.net/~ubuntustudio-documentation . Sending
> corrections
> of even entirely wrong Wikis are ignored, they only need to copy and
> paste from an email or at least completely remove bad Wiki pages.
> Ubuntu has got a few people who are allowed to edit Wikis, so there
> is
> on the one hand not enough manpower and on the other hand regarding
> special domains, such as pro-audio, often a serious lack of
> knowledge.
> 
> However, you need to become familiar with systemd, consider to read
> at
> https://www.freedesktop.org and https://wiki.archlinux.org/ about
> systemd, if you shouldn't find a satisfying Ubuntu Wiki.
> 
> Regards,
> Ralf
> 
Thank you for the reply Ralf. I really had no idea about systemd. I
guess I'm too used to the other way of starting a service just by
running sudo service (foo) start/stop/restart. I am going to have to do
some reading. I ran:

chris at localhost:~$ sudo systemctl restart clamav-daemon.service

then

chris at localhost:~$ systemctl status clamav-daemon.service
● clamav-daemon.service - Clam AntiVirus userspace daemon
   Loaded: loaded (/lib/systemd/system/clamav-daemon.service; enabled;
vendor pr
   Active: active (running) since Sat 2016-08-20 21:42:31 CDT; 26s ago
     Docs: man:clamd(8)
           man:clamd.conf(5)
           http://www.clamav.net/lang/en/doc/
 Main PID: 1579 (clamd)
   CGroup: /system.slice/clamav-daemon.service
           └─1579 /usr/sbin/clamd --foreground=true

Aug 20 21:42:49 localhost clamd[1579]: Mail files support enabled.
Aug 20 21:42:49 localhost clamd[1579]: OLE2 support enabled.
Aug 20 21:42:49 localhost clamd[1579]: PDF support enabled.
Aug 20 21:42:49 localhost clamd[1579]: SWF support enabled.
Aug 20 21:42:49 localhost clamd[1579]: HTML support enabled.
Aug 20 21:42:49 localhost clamd[1579]: Heuristic: precedence enabled
Aug 20 21:42:49 localhost clamd[1579]: Self checking every 600 seconds.

Aug 20 21:42:49 localhost clamd[1579]: Can't save PID in file
/var/run/clamav.pi <-------Have no idea why

Aug 20 21:42:49 localhost clamd[1579]: Listening daemon: PID: 1579
Aug 20 21:42:49 localhost clamd[1579]: MaxQueue set to: 100

I'm still seeing -  (Cannot connect to unix socket
'/var/lib/clamav/clamd.socket': connect: No such file or directory)

I have no earthly idea where it's getting that path since I don't have
it in any of my .conf files.

-- 
Chris
KeyID 0xE372A7DA98E6705C
31.11972; -97.90167 (Elev. 1092 ft)
21:54:36 up 2 days, 6:09, 1 user, load average: 1.17, 0.56, 1.17
Ubuntu 16.04.1 LTS, kernel 4.4.0-34-generic #53-Ubuntu SMP Wed Jul 27 16:06:39 UTC 2016





More information about the ubuntu-users mailing list