[SOLVED] logrorate error: lines must begin with a keyword or a filename (possibly in double quotes)June 14th, 2019
Using logrotate for the first time, I was baffled as to why I was receiving this error. Looking at the config file, it was clear that the filenames were there. After trying a bunch of things, I finally figured out the problem—I’d created the file under Windows and my FTP program hadn’t converted the newlines to the Unix format. A quick ‘dos2unix’ call later, and the problem was fixed.