LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-08-2005, 05:07 PM   #1
InJesus
Member
 
Registered: Oct 2005
Location: MN
Distribution: Slack, Slamd64
Posts: 33

Rep: Reputation: 15
Log file question


I had a runnaway log file and it filled up my hard drive. I fixed it and empitied it, but now some of my log files are not getting written to? like my messages and secure log files. how can I get them going again?

thanks
 
Old 11-09-2005, 10:36 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

You probably removed the files and created them again while syslog was still running, if you do that the link between the file and the program is lost and needs to be recreated.

So you need to restart the syslog daemon. You don't mention your distro so I can only give some pointers on how to do this:

1) Look for the syslogd process among all your processes, get the pid and give it a 'kick'

$ ps -ef | grep syslog
root 29845 1 0 Mar27 ? 00:00:04 syslogd -r -m 0

$ kill -SIGHUP 29845

2) Find the start/stop script that should reside in your init.d directory, mine is called sysklogd.

Just got to the init.d dir and do:

$ sysklogd restart

PS: You should take a look at logrotate, this program will check logfiles (size and/or date) and archives old ones (optionally) and creates new ones on-the-fly.

Hope this helps.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Log file for subdomain question htmlcoder Linux - Newbie 0 05-19-2005 03:43 AM
log file message question thebnut Linux - Software 1 04-17-2005 12:57 AM
Apache Log file question. GarroteYou Linux - Security 8 10-24-2004 05:51 AM
snort log file question ziegen Linux - Security 9 08-19-2004 02:49 PM
PHP log file question. hct224 Linux - Newbie 2 11-11-2003 03:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:03 AM.

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