The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > Linux
Google UNIX.COM


Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
syslog Hitori UNIX for Advanced & Expert Users 2 02-12-2008 01:54 PM
syslog csaunders SUN Solaris 13 08-29-2006 05:13 PM
syslog.log - hp-ux mhbd UNIX for Dummies Questions & Answers 3 03-11-2006 11:29 AM
syslog greg0320 UNIX for Dummies Questions & Answers 4 06-11-2004 11:26 AM
Who knows syslog? acqy UNIX for Dummies Questions & Answers 3 01-06-2004 01:56 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-22-2008
Registered User
 

Join Date: Oct 2007
Posts: 269
Stumble this Post!
syslog hup

Hi All,

I modified /etc/syslog.conf and execute kill -HUP syslogd_PID. There's nothing changes on the PID when I did ps -ef|grep syslogd. It's the same. Do you think it restarted the process of syslogd?



Thanks in advance.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 07-22-2008
reborg's Avatar
Administrator
 
Join Date: Mar 2005
Location: Ireland
Posts: 3,513
Stumble this Post!
That is exactly what you expect when you kill -HUP a daemon, the pid should not change.
Reply With Quote
  #3 (permalink)  
Old 07-24-2008
Registered User
 

Join Date: May 2008
Posts: 64
Stumble this Post!
You could always change your script to add the output of the command afterwards such as:


kill -HUP syslog_pid ; echo $? >> some_file

if there are any non 0s in there, you have a problem
Reply With Quote
  #4 (permalink)  
Old 07-24-2008
jhtrice's Avatar
Registered User
 

Join Date: Jun 2008
Posts: 63
Stumble this Post!
That's what you expect

Doing kill -HUP will not restart the process. It will just tell it to reread syslog.conf. What you are seeing is as expected.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 10:47 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0