LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   starting clamav at boot! (https://www.linuxquestions.org/questions/linux-general-1/starting-clamav-at-boot-41409/)

kudos 01-14-2003 04:50 AM

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

DavidPhillips 01-14-2003 05:03 AM

this is a long shot but I think it should work

try removing the "sh"

kudos 01-14-2003 05:17 AM

thx

starts up with no errors now :)

thx
kudos

DavidPhillips 01-14-2003 05:19 AM

Awesome!


All times are GMT -5. The time now is 10:38 AM.