Page 1 of 1
starting clamd-wrapper error
Posted: Mon Jul 03, 2006 7:25 pm
by alfista
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
Posted: Mon Jul 03, 2006 8:35 pm
by ScalixSupport
Hi Jason,
What are the permissions on the /etc/init.d/clamd-wrapper file? It sounds like it's not executable.
Thanks,
Rachel
Posted: Mon Jul 03, 2006 10:37 pm
by alfista
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
Posted: Mon Jul 03, 2006 10:49 pm
by alfista
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.
Posted: Mon Jul 03, 2006 11:34 pm
by alfista
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
Posted: Wed Jul 05, 2006 11:57 am
by ScalixSupport
Hi Jason,
How did you install ClamAV, from RPMs or source?
Thanks,
Rachel
Posted: Wed Jul 05, 2006 12:28 pm
by alfista
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
Posted: Wed Jul 05, 2006 12:32 pm
by ScalixSupport
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
Posted: Wed Jul 05, 2006 2:07 pm
by jryden
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]
Posted: Thu Jul 06, 2006 9:42 am
by alfista
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.