All Forums |
Register |
Login |
Search |
Subscriptions |
My Profile |
Inbox |
Tool Warehouse |
FAQs |
Resources |
Help |
Member List |
Address Book |
Logout |
|
|
RE: ClamAV on SFU 3.5
|
Logged in as: Guest |
Users viewing this topic: none |
|
Login |
|
|
RE: ClamAV on SFU 3.5 - Aug. 14, '04, 1:24:02 AM
|
|
|
breiter
Posts: 346
Joined: Jun. 14, '04,
From: Washington, DC
Status: offline
|
Oy. Whoops. Found the problem.
My startup script doesn't put /usr/local/lib into LD_LIBRARY_PATH. As a result clamd can't find zlib and fails to start.
This was only a problem at startup and not when manually starting the deamon because the profile.lcl and csh.cshrc login scripts set LD_LIBRARY_PATH so I just never noticed until now.
I also discovered that clamd doesn't create a /var/run/clamd.pid. So I had to get a little creative.
Sorry. I'll post a new install package sometime soon.
In the mean time, if this is messing someone else up, the startup script /etc/init.d/clamd should look more like this:
#!/bin/sh
# WolfeReiter, LLC (c) Copyright 2004 all rights reserved
# Start Clam AntiVirus daemon (clamd)
# Start it after syslog [S30syslog] has started (no other dependences).
case $1 in
start)
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/usr/local/lib"
/usr/local/sbin/clamd
[ $? = 0 ] && echo "clamd started"
;;
stop)
pid=`ps -Xunix -ax | grep "clamd"`
`kill -KILL${pid%%\-*}`
[ $? = 0 ] && echo "clamd stopped"
;;
esac
exit 0
### END
|
|
|
RE: ClamAV on SFU 3.5 - Aug. 14, '04, 1:30:46 AM
|
|
|
Rodney
Posts: 3714
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
|
The other workaround is to set 'rpath' when you link the binary.
Both ways work, just FYI.
|
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
|
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts |
|
|
|