LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 08-20-2012, 08:04 AM   #1
gcampton
LQ Newbie
 
Registered: Aug 2012
Posts: 8

Rep: Reputation: 0
Cron daily error: logrotate


Hey guys, while I'm at a basic-medium level of programming knowledge my unix knowledge is extremely limited. I ran 'Mint' for about 8 months 6-7 years ago. So my memory is somewhat lacking. However when I did I enjoyed bash scripting far more than I ever enjoyed java (urgh).

So I recently purchased a VPS from Hostgator as I'm out of work and looking to start my new career online. I chose linux naturally because they make far superior servers than windows installations (bias opinion).

However right from the get go I'm getting these error messages sent to my inbox from my server. I'm running Windows7 however I have cygwin (full), putty and filezilla installed.

Please be kind, I have no idea what cron-daily is about. If anyone could shed some light on it that would be great. Thanks, G.
Code:
/etc/cron.daily/60sa-update:

Shutting down psa-spamassassin service:  [  OK  ]
Starting psa-spamassassin service:  [  OK  ]
/etc/cron.daily/logrotate:

error: temp:1 lines must begin with a keyword or a filename (possibly in double quotes)
error: temp:2 lines must begin with a keyword or a filename (possibly in double quotes)
error: temp:3 lines must begin with a keyword or a filename (possibly in double quotes)
error: temp:4 lines must begin with a keyword or a filename (possibly in double quotes)
error: temp:5 lines must begin with a keyword or a filename (possibly in double quotes)
error: temp:6 lines must begin with a keyword or a filename (possibly in double quotes)
error: temp:7 lines must begin with a keyword or a filename (possibly in double quotes)
error: temp:8 lines must begin with a keyword or a filename (possibly in double quotes)
error: temp:9 lines must begin with a keyword or a filename (possibly in double quotes)
 
Old 08-20-2012, 08:11 AM   #2
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 5,644

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Often when you have a message it is good to simply do a web search for it as there is a good chance others have had it. I found several hits for it including this one:

http://forum.parallels.com/showthrea...581#post634581

A poster there says:

Quote:
I discovered a file titled "temp" that contained a standard 404 error html page in the directory /etc/logrotate.d

This file has 9 lines of html, exactly the number of errors I am seeing, and html doesn't fit the config parameters for logrotate, so the errors make sense. I removed the file. I expect to see the errors no longer.

I'd suggest looking in that directory and checking all of the files. The list of files now in my directory are:

exim httpd iscsiuiolog mailman named nginx rpm samba sa-update snmpd syslog temp yum
Other posters indicate that was also their problem so it is likely yours as well.
 
1 members found this post helpful.
Old 08-20-2012, 08:19 AM   #3
gcampton
LQ Newbie
 
Registered: Aug 2012
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks Mensa

I was to busy using this forums search engine and coming up blank >.<

Also on a side note, another member was talking on security side of Plesk. Anyone know what issues can arise from using plesk over cpanel and what I should look out for, and/or change server config.

Last edited by gcampton; 08-20-2012 at 08:22 AM.
 
Old 08-20-2012, 08:39 AM   #4
gcampton
LQ Newbie
 
Registered: Aug 2012
Posts: 8

Original Poster
Rep: Reputation: 0
Ok so in /etc/cron.daily (see image attatchment)
I can't edit any files or view them except for the 1 text file.
It contains 10 lines. I assume "done" parses correctly?
Code:
flags=-umc
/usr/sbin/tmpwatch "$flags" -x /tmp/.X11-unix -x /tmp/.XIM-unix \
	-x /tmp/.font-unix -x /tmp/.ICE-unix -x /tmp/.Test-unix \
	-X '/tmp/hsperfdata_*' 240 /tmp
/usr/sbin/tmpwatch "$flags" 720 /var/tmp
for d in /var/{cache/man,catman}/{cat?,X11R6/cat?,local/cat?}; do
    if [ -d "$d" ]; then
	/usr/sbin/tmpwatch "$flags" -f 720 "$d"
    fi
done
Would that be the culprit?
Attached Images
File Type: jpg Untitled2.jpg (26.5 KB, 6 views)

Last edited by gcampton; 08-20-2012 at 08:41 AM.
 
Old 08-20-2012, 08:52 AM   #5
gcampton
LQ Newbie
 
Registered: Aug 2012
Posts: 8

Original Poster
Rep: Reputation: 0
Code:
#!/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
I was able to copy logrotate to my home folder and download it's contents.
However both directories don't contain the above mentioned files and usr/bin/logger doesn't exist either.
My bad, I didn't realize plesk was only showing me 10 results per page.

So ignore that, I should be able to find it.

Last edited by gcampton; 08-20-2012 at 08:57 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
confused about use of logrotate and cron.daily someshpr Linux - Newbie 4 07-15-2012 10:25 AM
/etc/cron.daily/logrotate tommytomato Ubuntu 1 09-09-2008 08:59 PM
Cron.daily sends me a logrotate Kill usage message. pollardd Linux - General 1 09-02-2005 12:18 PM
cron.daily & logrotate cccc Suse/Novell 1 07-08-2005 12:06 PM
cron.daily error gjmwalsh Mandriva 2 10-29-2003 02:12 PM


All times are GMT -5. The time now is 11:44 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration