View Single Post
Old 13th January 2012, 17:28
epretorious epretorious is offline
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

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:

[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:
 * epel:
 * extras:
 * updates:
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
 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

  clamd.i686 0:0.97.3-2.el6

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!

[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
postuninstall scriptlet (using /bin/sh):

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

[root@ispconfig-1 ~]# rpm -ql clamd
Eric Pretorious,
Truckee, CA
Reply With Quote