#!/bin/sh # # Startup script for freshclam # # chkconfig: - 62 38 # description: clamav antivirus update daemon # processname: freshclam # config: /etc/freshclam.conf # # Source function library . /etc/rc.d/init.d/functions # Get network config . /etc/sysconfig/network if [ -f /etc/sysconfig/freshclam ]; then . /etc/sysconfig/freshclam fi PATH="$PATH:/usr/local/sbin" # See how we were called. case "$1" in start) echo -n "Starting freshclam: " daemon /usr/bin/freshclam -d echo touch /var/lock/subsys/freshclam ;; stop) echo -n "Shutting down freshclam: " killproc freshclam echo rm -f /var/lock/subsys/freshclam ;; status) status freshclam ;; restart) $0 stop $0 start ;; reread|reload) echo -n "Re-reading freshclam config: " killproc freshclam -HUP echo ;; *) echo -n "Usage: $0 {start|stop|restart|status|reread|reload" exit 1 esac exit 0