Bug 760497 - kernel.printk value change in sysctl.conf not applied by rc.sysinit
Summary: kernel.printk value change in sysctl.conf not applied by rc.sysinit
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: initscripts
Version: 5.7
Hardware: i386
OS: Linux
Target Milestone: rc
: ---
Assignee: initscripts Maintenance Team
QA Contact: qe-baseos-daemons
Depends On:
TreeView+ depends on / blocked
Reported: 2011-12-06 10:58 UTC by mike simpson
Modified: 2011-12-06 18:48 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2011-12-06 18:48:07 UTC
Target Upstream Version:

Attachments (Terms of Use)

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):


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.

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