📄 clamav-milter
字号:
#!/bin/sh## clamav-milter This script starts and stops the clamav-milter daemon## chkconfig: 2345 79 40## description: clamav-milter is a daemon which hooks into sendmail and routes \# email messages for virus scanning with ClamAV# processname: clamav-milter# pidfile: /var/lock/subsys/clamav-milter# Source function library.. /etc/rc.d/init.d/functions# Source networking configuration.. /etc/sysconfig/network# Local clamav-milter configCLAMAV_FLAGS=test -f /etc/sysconfig/clamav-milter && . /etc/sysconfig/clamav-milter# Check that networking is up.[ ${NETWORKING} = "no" ] && exit 0[ -x /usr/local/sbin/clamav-milter ] || exit 0PATH=$PATH:/usr/bin:/usr/local/sbin:/usr/local/binRETVAL=0start() { echo -n "Starting clamav-milter: " # 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 clamav-milter ${CLAMAV_FLAGS} RETVAL=$? echo test $RETVAL -eq 0 && touch /var/lock/subsys/clamav-milter return $RETVAL}stop() { echo -n "Shutting down clamav-milter: " killproc clamav-milter RETVAL=$? echo test $RETVAL -eq 0 && rm -f /var/lock/subsys/clamav-milter}restart() { stop start}# See how we were called.case "$1" in start) # Start daemon. start ;; stop) # Stop daemon. stop ;; restart|reload) restart ;; condrestart) test -f /var/lock/subsys/clamav-milter && $0 restart || : ;; status) status clamav-milter ;; *) echo "Usage: $0 {start|stop|reload|restart|condrestart|status}" exit 1esacexit $?
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -