Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I hope someone can help, as I have scoured google, and the forum but can't really find the answer I am looking for. I have recently installed clamav on my Red Hat 8.0 system and it runs like a champ. HOWEVER I want to enable this at boot time. I have added a script to the /etc/init.d directory, but I don't get how to get it recognized so that it A. starts a boot, and B. gets seen in the "Services" config tool in RH. There is a step that I am missing. For reference I have included the script that I found.
# crond Start/Stop the clam antivirus daemon.
# chkconfig: 2345 90 60
# description: clamdis a standard UNIX program that scans for Viruses.
# processname: clamd
# config: /usr/local/etc/clamd.conf
# pidfile: /var/lock/subsys/clamd
# Source function library.
# See how we were called.
# Source configuration
if [ -f /etc/sysconfig/$prog ] ; then
you need to make a link to this file in the /etc/rc.d/rc3.d/(if you boot up in text mode) or /etc/rc.d/rc5.d(if you boot up in gui)
name it something like S50clamav, where S50 is the order you want it to startup in, like S01 is the first thing to start in bootup and S99 is the last.
I've never used the redhat control panel so I don't know.