View Single Post
  #3  
Old 13th January 2012, 17:28
epretorious epretorious is offline
Member
 
Join Date: Feb 2010
Location: Truckee, CA
Posts: 33
Thanks: 3
Thanked 0 Times in 0 Posts
Send a message via AIM to epretorious Send a message via Yahoo to epretorious Send a message via Skype™ to epretorious
Exclamation

Quote:
Originally Posted by falko View Post
Can you log in as root directly instead of using sudo?
Yes, but it doesn't fix the problem:

Code:
[root@ispconfig-1 ~]# yum reinstall clamd
Loaded plugins: fastestmirror, priorities, security
Setting up Reinstall Process
Loading mirror speeds from cached hostfile
epel/metalink                                               |  12 kB     00:00
 * base: centos.mirror.facebook.net
 * epel: linux.mirrors.es.net
 * extras: mirror.hmc.edu
 * updates: centos.mirrors.hoobly.com
base                                                        | 3.7 kB     00:00
extras                                                      | 3.5 kB     00:00
updates                                                     | 3.5 kB     00:00
Resolving Dependencies
--> Running transaction check
---> Package clamd.i686 0:0.97.3-2.el6 will be reinstalled
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================
 Package          Arch        Version             Repository           Size
==============================================================================
Reinstalling:
 clamd            i686        0.97.3-2.el6        epel                 131 k

Transaction Summary
==============================================================================
Reinstall     1 Package(s)

Total download size: 131 k
Installed size: 386 k
Is this ok [y/N]: y
Downloading Packages:
clamd-0.97.3-2.el6.i686.rpm                                 | 131 kB     00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : clamd-0.97.3-2.el6.i686                      1/1
Non-fatal POSTIN scriptlet failure in rpm package clamd-0.97.3-2.el6.i686
error reading information on service clamd: No such file or directory
warning: %post(clamd-0.97.3-2.el6.i686) scriptlet failed, exit status 1

Installed:
  clamd.i686 0:0.97.3-2.el6

Complete!
Checking the package's scripts and the package list reveals the problem, however: There are no init.d scripts for the clamd service - only the init.d script for clamav!

Code:
[root@ispconfig-1 ~]# rpm -q --scripts clamd
preinstall scriptlet (using /bin/sh):
getent group clam >/dev/null || groupadd -r clam
getent passwd clam >/dev/null || \
useradd -r -g clam -d /var/clamav -s /sbin/nologin \
    -c "Clam Anti Virus Checker" clam
exit 0

postinstall scriptlet (using /bin/sh):
/sbin/chkconfig --add clamd

preuninstall scriptlet (using /bin/sh):
if [ $1 -eq 0 ]; then
	/sbin/service clamd stop &>/dev/null || :
	/sbin/chkconfig --del clamd
fi
postuninstall scriptlet (using /bin/sh):

/sbin/service clamd condrestart &>/dev/null || :

[root@ispconfig-1 ~]# rpm -ql clamd
/etc/clamd.conf
/etc/clamd.d
/etc/logrotate.d/clamav
/etc/rc.d/init.d/clamav
/usr/bin/clamconf
/usr/bin/clamdscan
/usr/sbin/clamd
/usr/share/clamav/README.clamd-wrapper
/usr/share/clamav/clamd-wrapper
/usr/share/clamav/clamd.init
/usr/share/clamav/clamd.sysconfig
/usr/share/doc/clamd-0.97.3
/usr/share/doc/clamd-0.97.3/clamd.conf
/usr/share/man/man1/clambc.1.gz
/usr/share/man/man1/clamconf.1.gz
/usr/share/man/man1/clamdscan.1.gz
/usr/share/man/man1/clamdtop.1.gz
/usr/share/man/man5/clamd.conf.5.gz
/usr/share/man/man8/clamd.8.gz
/var/lib/clamav
/var/log/clamav
/var/log/clamav/clamd.log
/var/run/clamav
__________________
Eric Pretorious,
Truckee, CA
Reply With Quote