Feng Yu
deepin
2014-11-02 19:24 logrotate是大多数linux发行版默认带的自动滚动日志的工具。
这个报错说/var/log/deepin.log这个文件不存在,我找了下是在/etc/logrotate.d/deepin-logger这个文件存放的,编辑这个文件,加上missingok即可。如sudo gedit /etc/logrotate.d/deepin-logger打开编辑这个文件,修改为以下内容:
Copy the Code
这个报错说/var/log/deepin.log这个文件不存在,我找了下是在/etc/logrotate.d/deepin-logger这个文件存放的,编辑这个文件,加上missingok即可。如sudo gedit /etc/logrotate.d/deepin-logger打开编辑这个文件,修改为以下内容:
- /var/log/deepin.log {
- daily
- missingok
- rotate 7
- nocompress
- create 0644 deepin-daemon deepin-daemon
- }
Reply Like 0 View the author


中文 
邮件内容如下:
/etc/cron.daily/logrotate:
error: stat of /var/log/deepin.log failed: No such file or directory
run-parts: /etc/cron.daily/logrotate exited with return code 1