Bug 39423 - multiple -HUP should not be delivered
Summary: multiple -HUP should not be delivered
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: sysklogd
Version: 7.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: David Lawrence
URL:
Whiteboard:
: 47020 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-05-07 17:04 UTC by Need Real Name
Modified: 2014-03-17 02:20 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2001-07-06 03:14:59 UTC
Embargoed:


Attachments (Terms of Use)

Description Need Real Name 2001-05-07 17:04:03 UTC
Multiple -HUP to syslogd should not be delivered.

Currently /etc/logrotate.d/syslog 
delivers a -HUP for every file.

This is incorrect. It should use sharedscripts command
for example like one from /etc/logrotate.d/samba

Also see

http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=34230

for a similar report with apache log rotation

Comment 1 Bill Nottingham 2001-07-06 03:14:55 UTC
*** Bug 47020 has been marked as a duplicate of this bug. ***

Comment 2 Bill Nottingham 2001-07-09 04:19:05 UTC
Added in 1.4.1-1, thanks!

Comment 3 Need Real Name 2001-07-09 04:55:57 UTC
 Very good it was fixed.
 Without this fix a race often caused sysklogd killed
 (when second -HUP gets delivered during first -HUP processing)
 This often happened with slow computers.

 To model such problem just do

 while true ; do killall -HUP sysklogd ;  done

 the sysklogd will get killed.
 Same thing did multiple -HUP from log rotation.
 Hopefully it will be fixed from now on in sysklogd.

 Also, check the other daemons for this type of problem.
 It is very annoying - server just dies one every one or two months.
 I found few (apache, exim, syslog)
 which now seems fixed. Check the other daemons to make sure 
 no multiple -HUP used for daemon restarting.


Note You need to log in before you can comment on or make changes to this bug.