+ -
当前位置:首页 → 问答吧 → 这段代码什么意思

这段代码什么意思

时间:2011-08-07

来源:互联网

#!/bin/sh

/usr/sbin/logrotate /etc/logrotate.conf
EXITVALUE=$?
if [ $EXITVALUE != 0 ]; then
    /usr/bin/logger -t logrotate "ALERT exited abnormally with [$EXITVALUE]"
fi
exit 0


我用logrotate来转储日志,每天转储一次,这段代码什么意思?
这是/etc/cron.daily/logrotate 文件的内容。

作者: 会吐烟圈的猪   发布时间: 2011-08-07

不懂
帮顶

作者: lwent90   发布时间: 2011-08-07