LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 04-22-2003, 02:20 PM   #1
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
syslog


Hello all,

I made some changes to my syslog.conf file, but they seem not to have taken effect yet. Is there a command I need to run to get syslog to reread this file? Do I need to restart syslog?

The syslog and syslog.conf man pages don't have the answer.

Any help appreciated.
 
Old 04-22-2003, 02:26 PM   #2
AltF4
Member
 
Registered: Sep 2002
Location: .at
Distribution: SuSE, Knoppix
Posts: 532

Rep: Reputation: 31
either do a "/etc/init.d/syslogd restart" or "kill -1 $PID_OF_SYSLOGD"

.......

man syslogd:


[...]
Syslogd reacts to a set of signals. You may easily send a
signal to syslogd using the following:

kill -SIGNAL `cat /var/run/syslogd.pid`


SIGHUP This lets syslogd perform a re-initialization. All
open files are closed, the configuration file
(default is /etc/syslog.conf) will be reread and
the syslog(3) facility is started again.

[...]
 
Old 04-22-2003, 02:35 PM   #3
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760

Original Poster
Blog Entries: 4

Rep: Reputation: 78
Hmmm,

I tried
kill -1 41 (syslogd's pid #)
kill -SIGHUP `cat /var/run/syslogd.pid`
kill -SIGHUP 41

None are working. syslogd remains the same pid, and is not being restarted. Thanks for the response though...
 
Old 04-22-2003, 03:41 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
None are working. syslogd remains the same pid, and is not being restarted. Thanks for the response though...
Do you mean its behaviour didn't change?
The PID shouldn't, that's why you use SIGHUP
in the first place, rather than kill -9 ;)

Cheers,
Tink
 
Old 04-22-2003, 03:45 PM   #5
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760

Original Poster
Blog Entries: 4

Rep: Reputation: 78
Jeez, excuse my greenness,

I didn't know the pid would be the same, it worked fine.

Thanks for the help guys....
 
  


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
syslog vs syslog-ng XaViaR Linux - General 9 06-17-2005 09:15 AM
what does this mean in my syslog? rosscopeeko Mandriva 4 06-04-2004 02:50 PM
syslog -r dvong3 Linux - General 5 12-27-2003 07:22 AM
Syslog??? pk21 Programming 3 07-05-2002 07:25 AM
Syslog ltrain Linux - General 3 06-27-2001 03:43 PM

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

All times are GMT -5. The time now is 03:03 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