IBM eServer xSeries 235 | SolarisTM 10 x86 1/06 |
フリーのウィルス対策 必要なソフトウェア
# Example UpdateLogFile /var/log/clamd/freshclam.log |
# Example LogFile /var/log/clamd/clamd.log LogTime yes PidFile /var/run/clamav/clamd.pid # LocalSocket /tmp/clamd LocalSocket /var/run/clamav/clamd.sock TCPSocket 3310 # Userは後のClamSMTPと同じユーザー名にすること。 User clamav ScanMail yes |
#!/bin/sh # case "$1" in 'start') if [ ! -d /var/run/clamav ]; then mkdir /var/run/clamav chown clamav:clamav /var/run/clamav fi /usr/local/sbin/clamd & /usr/local/bin/freshclam -d -c 24 echo " clamav [start]" ;; 'stop') kill `cat /var/run/clamav/clamd.pid` pkill freshclam rm -f /var/run/clamav/clmilter.sock echo " clamav [stop]" ;; 'restart') $0 stop sleep 1 $0 start ;; *) echo "Usage: $0 { start | stop | restart }" exit 1 ;; esac exit 0 |