Bug 760497

Summary: kernel.printk value change in sysctl.conf not applied by rc.sysinit
Product: Red Hat Enterprise Linux 5 Reporter: mike simpson <mikie.simpson>
Component: initscriptsAssignee: initscripts Maintenance Team <initscripts-maint-list>
Status: CLOSED WONTFIX QA Contact: qe-baseos-daemons
Severity: high Docs Contact:
Priority: unspecified    
Version: 5.7CC: notting
Target Milestone: rc   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-06 18:48:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description mike simpson 2011-12-06 10:58:14 UTC
Description of problem:

rc.sysinit is not calling sysctl

Version-Release number of selected component (if applicable):

initscripts-8.45.38-2.el5.src.rpm

How reproducible:

add entry to /etc/sysctl.conf "kernel.printk = 4 4 1 7"
"sysctl -p /etc/sysctl.conf" at the cli sets this value but on reboot the value of /proc/sys/kernel/printk is back to 6 4 1 7

Steps to Reproduce:
1. add value kernel.printk = 4 4 1 7 to /etc/syscltl.conf
2. issue sysctl -p command
3. reboot and issue command cat /proc/sys/kernel/printk
  
Actual results:
6 4 1 7

Expected results:
4 4 1 7

Additional info:

rc.sysinit has a line saying "apply_sysctl" but there is no /sbin/sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1 (though adding this makes no difference)

Comment 1 Bill Nottingham 2011-12-06 18:48:07 UTC
Assorted things (including the syslog daemon itself) frob this particular value during bootup - this behavior will not be changed in a RHEL minor release. If you need to change this value with sysctl, it needs to be done it in rc.local.

This is fixed in RHEL 6, to the best of my knowledge, but it won't be fixed for RHEL 5.