[Bug 224728] security/clamav: Fails to start when /var/run is on volatile TEMPFS

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Dec 30 13:31:58 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=224728

            Bug ID: 224728
           Summary: security/clamav:  Fails to start when /var/run is on
                    volatile TEMPFS
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ler at FreeBSD.org
          Reporter: ohartmann at walstatt.org
          Assignee: ler at FreeBSD.org
             Flags: maintainer-feedback?(ler at FreeBSD.org)

Created attachment 189219
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=189219&action=edit
Makefile and rc-script patches

security/clamav doesn not restart after the initial installation, once the
system has been repbooted and the /var/run folder resides on tempfs or memory
filesystem. The reason seems to be the loss of the /var/run/clamav folder,
which is initially installed when the package/port gets the first time
installed, but the appropriate rc script doesn't check for the existence of
/var/run/clamav.

The result is shown bewlow.

Attached I'll offer some ideas for a patch of the port framework to aim for the
problem, see attachment.

[...]
 service clamav-clamd restart
clamav_clamd not running?
Starting clamav_clamd.
ERROR: LOCAL: Socket file /var/run/clamav/clamd.sock could not be bound: No
such file or directory
Closing the main socket.
ERROR: Can't unlink the socket file /var/run/clamav/clamd.sock
/usr/local/etc/rc.d/clamav-clamd: WARNING: failed to start clamav_clamd


Kind regards,

O. Hartmann

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list