Yes, you are right. But on system start ClamFS write error message like:
 Clam Antivirus not started
(Sorry I don`t remember promptly message)
Then I write this script in /etc/init.d/ to mount my clamfs dirs:

#! /bin/sh
# /etc/init.d/clamfs
#

### BEGIN INIT INFO
# Provides:        clamfs
# Required-Start:  $clamav-daemon
# Required-Stop:   $clamav-daemon
# Default-Start:   2 3 4 5
# Default-Stop:    0 1 6
# Short-Description: Mount clamfs
### END INIT INFO

# Carry out specific functions when asked to by the system
case "$1" in
start)
for xls in `ls /etc/clamfs/*.xls`; do clamfs $xls; done
;;
stop)
umount /mnt/clamfs/*
;;
*)
echo "Usage: /etc/init.d/clamfs {start|stop}" >&2
exit 1
;;
esac

exit 0


-- 

         Roman V. Nikolaev

mail:        rsha...@rambler.ru
icq:         198-364-657
jabber:      rsha...@jabber.org
openPGP ID:  DE0E1C1B
openPGP key: 655A 86EB 653C 6D6C BB16 2550 EA12 A906 DE0E 1C1B

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to