starting clamd-wrapper error

Discuss installation of Scalix software

Moderators: ScalixSupport, admin

alfista
Posts: 94
Joined: Sat Oct 22, 2005 10:32 am

starting clamd-wrapper error

Postby alfista » Mon Jul 03, 2006 7:25 pm

Hi all,

My Service Router is down because clamd-wrapper refuses to start.

[root@mail ~]# /etc/init.d/clamd-wrapper start
-bash: /etc/init.d/clamd-wrapper: Permission denied

I think this is new in 0.88 but I'm pretty new to all of this. Anyone have any thoughts? My box is down until I get this resolved.

Thanks!

Jason

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Mon Jul 03, 2006 8:35 pm

Hi Jason,

What are the permissions on the /etc/init.d/clamd-wrapper file? It sounds like it's not executable.

Thanks,
Rachel

alfista
Posts: 94
Joined: Sat Oct 22, 2005 10:32 am

Postby alfista » Mon Jul 03, 2006 10:37 pm

Thanks Rachel!

That's what I thought, but I think the permissions are set correctly:

[root@mail init.d]# ls -l clam*
lrwxrwxrwx 1 root root 31 Jun 27 11:45 clamd-wrapper -> /usr/share/clamav/clamd-wrapper

clamd-wrapper is a symbolic link (if I have the term correct). I suspect I don't understand permissions correctly.

Let me know what you think I should try next.

Jason

alfista
Posts: 94
Joined: Sat Oct 22, 2005 10:32 am

Postby alfista » Mon Jul 03, 2006 10:49 pm

I changed permissions to 755 on the target file:

/usr/share/clamav/clamd-wrapper

and I can now execute the file, but get a new error:

[root@mail init.d]# /etc/init.d/clamd-wrapper
*** /etc/init.d/clamd-wrapper can not be called in this way
*** Please see /usr/share/doc/clamav-server-*/README how
*** the clamav-server can be configured

I'll keep chipping away at it and post my findings here.

alfista
Posts: 94
Joined: Sat Oct 22, 2005 10:32 am

Postby alfista » Mon Jul 03, 2006 11:34 pm

I just don't seem to get the paradigm of software on a linux box...

I needed to launch 'clamd' in order to get the Service Router going, not clamd-wrapper, which appears as a service from what I can tell by using webmin.

What is the best way to get clamd to run at startup in a scalix configuration like we are discussing?

Thanks!

Jason

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Wed Jul 05, 2006 11:57 am

Hi Jason,

How did you install ClamAV, from RPMs or source?

Thanks,
Rachel

alfista
Posts: 94
Joined: Sat Oct 22, 2005 10:32 am

Postby alfista » Wed Jul 05, 2006 12:28 pm

Hi Rachel,

Thanks for the reply. I installed the Clam packages using Yum. I found that I needed to run clamd not clamd-wrapper from a command line. Apparently there are some scripts that should have been installed to run it at startup, but I can't seem to locate them. However, with clamd running everything seems to be fine. I need to figure out how to run clamd as a cron job in case it crashes, but I haven't had time to look into that.

Thanks,

Jason

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Wed Jul 05, 2006 12:32 pm

clamd should be a script in /etc/init.d. Check to see that it is there. To see if it is set to start at boot use:

chkconfig --list clamd

If it isn't set to start on run levels 3 and 5 issue:

chkconfig --level 35 clamd on

Regards,
Don

jryden
Posts: 73
Joined: Fri May 26, 2006 8:32 pm
Location: Los Angeles, USA

Postby jryden » Wed Jul 05, 2006 2:07 pm

alfista wrote:I changed permissions to 755 on the target file:

/usr/share/clamav/clamd-wrapper

and I can now execute the file, but get a new error:

[root@mail init.d]# /etc/init.d/clamd-wrapper
*** /etc/init.d/clamd-wrapper can not be called in this way
*** Please see /usr/share/doc/clamav-server-*/README how
*** the clamav-server can be configured

I'll keep chipping away at it and post my findings here.


You need to call it with an argument [start|stop|restart|status]:

# /etc/init.d/clamd-wrapper [start|stop|restart|status]

alfista
Posts: 94
Joined: Sat Oct 22, 2005 10:32 am

Postby alfista » Thu Jul 06, 2006 9:42 am

jryden wrote:You need to call it with an argument [start|stop|restart|status]:

# /etc/init.d/clamd-wrapper [start|stop|restart|status]


That doesn't appear to work. Whether started through webmin or ssh I still get:

[root@mail ~]# /etc/rc.d/init.d/clamd-wrapper start
*** /etc/rc.d/init.d/clamd-wrapper can not be called in this way
*** Please see /usr/share/doc/clamav-server-*/README how
*** the clamav-server can be configured
[root@mail ~]#

I think I must have an oddly installed version of ClamAV.


Return to “Installation”



Who is online

Users browsing this forum: No registered users and 2 guests

cron