Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I got bash script from internet for for Running the Clamav Antivirus in Demon mode.

But am getting the below error.

Can't open /etc/rc.d/init.d/functions

I checked /etc/rc.d/init.d/ directory there is no file named functions.

Mine is Ubuntu 12.04

My script is

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

[ -x /usr/local/sbin/clamd ] || exit 0

.....

Any idea?

share|improve this question
    
The functions file is /lib/lsb/init-functions, but see my answer below. –  Frantique Sep 21 '12 at 12:42

1 Answer 1

up vote 2 down vote accepted

Install clamav using apt:
sudo apt-get install clamav*, and you will not have these problems anymore. What you have downloaded doesn't seem to be suitable for Ubuntu 12.04.

share|improve this answer
    
Yes. I have downloaded the clamav and used make install.What is the correct way to uninstall clamav?. Can I use apt-get remove clamav? –  soundar Sep 21 '12 at 12:53
    
No, make uninstall from the directory from where you have installed it. –  Frantique Sep 21 '12 at 12:54
1  
Thank you very much! –  soundar Sep 21 '12 at 12:58

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.