LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 09-13-2004, 12:56 PM   #1
srns
LQ Newbie
 
Registered: Sep 2004
Posts: 29

Rep: Reputation: 15
console logging messages


Guys,

I have a new driver, which prints all debug messages to console and /var/log/messages.

I wrote new set of priority values to /proc/sys/kernel/printk, which solves the problem. But, after every reboot this file is getting the default back, which makes the huge debug messages appear again.

How can I make my changes to /proc/sys/kernel/printk permanent. There should be a different way of doing this, and I'm not able to find it.

FYI - it is an appliance (not a PC/workstation). Logging into it and echo'ing is not right in this situation.

Thanks..
 
Old 09-13-2004, 01:11 PM   #2
fphillips
Member
 
Registered: Sep 2004
Location: KS
Distribution: Slack 10-current
Posts: 87

Rep: Reputation: 15
In /etc/sysctl.conf add:
kernel.printk = permanent

Then a sysctl -p I think to register the changes.
 
Old 09-13-2004, 04:18 PM   #3
srns
LQ Newbie
 
Registered: Sep 2004
Posts: 29

Original Poster
Rep: Reputation: 15
Thanks man!

Appreciate it..
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Logging Console Boot Messages candyman123 Linux - General 5 06-19-2005 02:38 PM
logging bootup messages to textfile? cast55 Debian 2 02-19-2005 05:56 PM
Howto Turn of X messages when logging out of KDE lacerto Linux - General 0 06-23-2004 01:12 PM
Logging kernel messages ugenn Linux - Software 8 01-04-2003 06:11 AM
logging external messages with syslogd slawomir Linux - Networking 3 09-04-2002 04:26 AM


All times are GMT -5. The time now is 05:28 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration