LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-14-2003, 04:50 AM   #1
kudos
Member
 
Registered: Oct 2002
Location: UK
Distribution: Fedora 4
Posts: 90

Rep: Reputation: 15
starting clamav at boot!


hi

how do i start clamav on boot from init.d or somethink?

i have it installed in

/usr/local/sbin/
and run command is
./clamd

when i put
Quote:
#!/bin/sh
# description: clam AV antivirus scanner!
# chkconfig: 2345 99 00

case "$1" in
'start')
sh /usr/local/sbin/clamd
touch /var/lock/subsys/clamAV
;;
'stop')
rm -f /var/lock/subsys/clamAV
;;
*)
echo "Usage: $0 { start | stop }"
;;
esac
exit 0
i get
Executing /etc/rc.d/init.d/clamAV start ..


/usr/local/sbin/clamd: /usr/local/sbin/clamd: cannot execute binary file


what does this mean?

many thx
kudos
 
Old 01-14-2003, 05:03 AM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
this is a long shot but I think it should work

try removing the "sh"
 
Old 01-14-2003, 05:17 AM   #3
kudos
Member
 
Registered: Oct 2002
Location: UK
Distribution: Fedora 4
Posts: 90

Original Poster
Rep: Reputation: 15
thx

starts up with no errors now

thx
kudos
 
Old 01-14-2003, 05:19 AM   #4
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
Awesome!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Won't Boot - Starting Printer Service - Starting CUPS jeansond Linux - Newbie 0 10-11-2004 06:39 PM
boot fedora without starting x spideywebsling Linux - Newbie 2 06-29-2004 06:09 PM
Starting modules on boot Syphon Filter Mandriva 3 06-01-2004 05:42 AM
Starting daemon during boot up chuck77 Linux - General 3 03-27-2002 06:47 AM
starting xfstt on boot vasah20 Linux - Software 0 03-25-2002 09:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration