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 02: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 12:29 PM
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 02:56 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 07-22-2008
Registered User
 

Join Date: Oct 2007
Posts: 289
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  
Old 07-22-2008
reborg's Avatar
Administrator
 

Join Date: Mar 2005
Location: Ireland
Posts: 3,638
That is exactly what you expect when you kill -HUP a daemon, the pid should not change.
Reply With Quote
  #3  
Old 07-24-2008
Registered User
 

Join Date: May 2008
Posts: 77
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  
Old 07-24-2008
jhtrice's Avatar
Registered User
 

Join Date: Jun 2008
Posts: 63
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 Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 01:57 PM.


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

Content Relevant URLs by vBSEO 3.2.0