LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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
  Search this Thread
Old 08-23-2010, 02:01 AM   #1
sickdude
LQ Newbie
 
Registered: Mar 2005
Distribution: red hat *, fedora core *, gentoo, slackware, ubuntu
Posts: 27

Rep: Reputation: 15
Ubuntu 6.06 Syslog crashes after logrotate


Hi all,

Allright ill get straight to the point with this one because its bothering me very much, and getting kinda critical...

I have a postfix mailserver that works fine except for the logrotate.

syslog.conf
mail.* -/var/log/mail.log

logrotate.conf
/var/log/mail.log {
daily
rotate 7
compress
sharedscripts
postrotate
/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
endscript
}

So when cron does the logrotate, there is a new logfile but its empty. After i restart the syslogd it gets back to its normal logging.

What am i missing? All this works with CentOS, why is Ubuntu such a pain...
 
Old 08-23-2010, 07:18 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Quote:
What am i missing? All this works with CentOS, why is Ubuntu such a pain...
What version of CentOS are you using? I'm betting it's not out of support like Ubuntu 6.06 is.

You said it crashed in your title but neglected to expand on that in your post. Is it crashing or not? What's the message? Anything in /var/log/syslog?
 
Old 08-23-2010, 07:24 PM   #3
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Blog Entries: 62

Rep: Reputation: 56
Why are so many server admins using EOL Linux distros? And just why are EOL distros still available to download?

Please, for the love of God: Upgrade to Hardy or Lucid and ditch Dapper, as it is absolutely way too old.
 
Old 08-24-2010, 03:21 AM   #4
sickdude
LQ Newbie
 
Registered: Mar 2005
Distribution: red hat *, fedora core *, gentoo, slackware, ubuntu
Posts: 27

Original Poster
Rep: Reputation: 15
Well, thats the point. It just stops logging. So i get no errors.

And yea i wish i could upgrade these servers but i am the new sysadmin of this old crap and i dont want to upgrade such an unstable machine... Plans are to replace it, but for the time being i need this thing to work as i want to.

So anyway, any tips or tricks? :-)
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
application crashes at syslog logrotate siege618 Linux - Server 4 06-17-2007 04:47 AM
logrotate, syslog-ng & cron hattori.hanzo Linux - Newbie 1 11-08-2006 12:08 PM
Pix logging on syslog... logrotate does not work logicalfuzz Linux - Software 0 03-06-2006 12:04 AM
LogRotate Webmin - Apache Crashes brooky Linux - Software 0 04-26-2004 02:16 AM
Linux Box crashes with no trace in syslog eDubster Linux - General 2 05-19-2003 03:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration