Centos 6上次更新后,logrotate不能正常工作。谁能给我指出问题的根源?
我收到的邮件是这样的:
/etc/cron.daily/logrotate:
logrotate_script: line 1: daily: command not found
logrotate_script: line 2: rotate: command not found
logrotate_script: line 3: delaycompress: command not found`发布于 2016-01-06 00:41:04
您是否可能将这些行放在logrotate.conf脚本中的脚本块内?
例如,在"endscript“指令之前的"postrotate”、"prerotate“、"firstaction”、"lastaction“块中?
这将导致脚本将这些logrotate指令视为脚本中的命令;由于它们不是命令,因此您将得到您提到的确切消息。
https://stackoverflow.com/questions/32691550
复制相似问题