Article 6CPAF logrotate.conf update for vim users (slackware 15.0)

logrotate.conf update for vim users (slackware 15.0)

by
RoomInRome
from LinuxQuestions.org on (#6CPAF)
Hi slackware users, today I found a bad result when run my system with

# logrotate /etc/logrotate.conf

The cause is:
In case the root user change manually file/s into "/etc/logrotate.d/" directory using vim or gvim, and, in case the vim or gvim is configured to default, save the backup file into the same directory using --> ".originalfilename.un~"

the result for logrotate command is bad ... like this:

.psacct.un~:1 keyword 'Vim' not properly separated, found 0xffffff9f
error: .psacct.un~:1 unknown option 'Vim' -- ignoring line
error: .psacct.un~:3 bad rotation count '285'
error: found error in file .psacct.un~, skipping


to skip the error insert:

tabooext + .*~

just before the "include /etc/logrotate.d" command into the logrotate.conf file.

Basically add ".*~" filename to the ignore list files

The guru here detect some pritical point to change the logrotate.conf file??
BR
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments