1
這裡允許您檢視這個會員的所有文章。請注意, 您只能看見您有權限閱讀的文章。
Aug 31 16:36:29 spamx sendmail[3762]: i7V8aTg03762: from=root, size=1372, class=0, nrcpts=1, msgid=<200408310836.i7V8aTg03762@spamx.abc.com.tw>, relay=root@localhost
Aug 31 16:36:30 spamx sendmail[3765]: i7V8aTg03762: to=lino@abc.tw.procmail, ctladdr=root (0/0), delay=00:00:01, xdelay=00:00:00, mailer=esmtp, pri=31372, relay=abc.com.tw. [210.209.204.47], dsn=5.6.0, stat=Data format error
Aug 31 16:36:30 spamx sendmail[3765]: i7V8aTg03762: i7V8aUf03765: DSN: Data format error
#! /bin/bash
#
# Source function library.
. /etc/init.d/functions
RETVAL=0
# See how we were called.
prog="ntop"
start() {
echo -n $"Starting $prog: "
daemon /usr/bin/ntop -d -P /usr/local/share/ntop/ -u ntop
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/ntop
return $RETVAL
}
stop() {
echo -n $"Stopping $prog: "
killproc ntop
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/ntop
return $RETVAL
}
rhstatus() {
status ntop
}
restart() {
stop
start
}
reload() {
echo -n $"Reloading ntop daemon configuration: "
killproc ntop -HUP
retval=$?
echo
return $RETVAL
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
restart
;;
reload)
reload
;;
status)
rhstatus
;;
condrestart)
[ -f /var/lock/subsys/ntop ] && restart || :
;;
*)
echo $"Usage: $0 {start|stop|status|reload|restart|condrestart}"
exit 1
esac
exit $?