⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 clamd

📁 clamav 0.93rc1 - 最新版本的源代码
💻
字号:
#! /bin/bash## crond   Start/Stop the clam antivirus daemon.## chkconfig: 2345 70 41# description: clamd is a standard Linux/UNIX program that scans for Viruses.# processname: clamd# config: /usr/local/etc/clamd.conf# pidfile: /var/lock/subsys/clamd# Source function library.. /etc/init.d/functionsRETVAL=0# See how we were called.prog="clamd"progdir="/usr/local/sbin"# Source configurationif [ -f /etc/sysconfig/$prog ] ; then	. /etc/sysconfig/$progfistart() {	echo -n $"Starting $prog: "	# Don't allow files larger than 20M to be created, to limit DoS	# Needs to be large enough to extract the signature files	ulimit -f 20000        LANG= daemon $progdir/$prog	RETVAL=$?	echo	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/clamd	return $RETVAL}stop() {	echo -n $"Stopping $prog: "	# Would be better to send QUIT first, then killproc if that fails	killproc $prog	RETVAL=$?	echo	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/clamd	return $RETVAL}rhstatus() {	status clamd}restart() {	stop	start}reload() {	echo -n $"Reloading clam daemon configuration: "	killproc clamd -HUP	retval=$?	echo	return $RETVAL}case "$1" in  start)	start	;;  stop)	stop	;;  restart)	restart	;;  reload)	reload	;;  status)	rhstatus	;;  condrestart)	[ -f /var/lock/subsys/clamd ] && restart || :	;;  *)	echo $"Usage: $0 {start|stop|status|reload|restart|condrestart}"	exit 1esacexit $?

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -