LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices

Reply
 
Search this Thread
Old 11-27-2012, 03:47 PM   #1
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,652
Blog Entries: 1

Rep: Reputation: 230Reputation: 230Reputation: 230
Kernel log daemon not starting


Hi

I have encountered a problem on my lfs the kernel log daemon is not starting, It looks like it happened about 9 days ago if i,m reading log correct
The last date was nov 18
The system log daemon is ok

Where should I start looking for problem or how to fix.

ps I have been installing packages working towards gnome
I have also made the partition larger as I ran out of room
 
Old 11-27-2012, 04:09 PM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Not sure what you do or do not know.

klogd is started, together with syslogd with this file during boot in runlevels 2 3 4 5: /etc/rc.d/init.d/sysklogd

No typo's? Did you add any (correct?) options to klogd?

If that doesn't help: Check your log files and the output of dmseg just after a reboot.
 
Old 11-27-2012, 04:31 PM   #3
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,652
Blog Entries: 1

Original Poster
Rep: Reputation: 230Reputation: 230Reputation: 230
Hi

Only added the -c 3 to the end of start daemon /sbin/klogd but tried removing no difference but that has been there along time.

I did think of re running bootscripts from lfs again.
The next option would be to untar an older copy and work back through it again.
As the 18th was a sunday I would of installed a few packages

As far as i can see nothing showed up in dmseg
 
Old 11-28-2012, 01:26 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Strange.

Are you able to start klogd by hand (as root)?
Code:
# make sure it isn't running
ps -ef | grep klogd
# start klgod
/sbin/klogd &
# is it running
ps -ef | grep klogd
You might add an option (-o or -d comes to mind, check the klogd man page).

One other thing comes to mind: Did you alter any kernel options? I can't point you to s specific one at the moment (no kernel source available).
 
Old 11-28-2012, 06:24 AM   #5
Keith Hedger
Member
 
Registered: Jun 2010
Location: Devon,UK
Distribution: Linux From Scratch, Slackware64,
Posts: 873

Rep: Reputation: 174Reputation: 174
Just had a quick look at my kernel config and the only reference to the logs is this line:
CONFIG_DEFAULT_MESSAGE_LOGLEVEL=4

Could you ( or more likely gnome ) have reset the the log level somewhere? so that the demon is running but not actually spitting anything out?

Does "top" show the demon?
 
Old 11-28-2012, 11:33 AM   #6
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,652
Blog Entries: 1

Original Poster
Rep: Reputation: 230Reputation: 230Reputation: 230
Hi

Druuna
Daemon is not running when booted but can start it by hand as you suggested.

I have also tried some old kernels to boot from still wont start, so i,m sure it,s not a problem in the kernel
 
Old 11-28-2012, 11:46 AM   #7
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Quote:
Originally Posted by spiky0011 View Post
Daemon is not running when booted but can start it by hand as you suggested.

I have also tried some old kernels to boot from still wont start, so i,m sure it,s not a problem in the kernel
Looking at the feedback I have to agree.

You said you can start klogd by hand (using /sbin/klogd), can you stop (check both manually) and start klogd and syslogd by using /etc/rc.d/init.d/sysklogd stop and /etc/rc.d/init.d/sysklogd start (also check both manually if success is suggested)?
 
Old 11-28-2012, 12:18 PM   #8
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,652
Blog Entries: 1

Original Poster
Rep: Reputation: 230Reputation: 230Reputation: 230
Ok

output of /etc/rc.d/init/sysklogd stop
Stopping kernel log daemon
stopping system log daemon

Just as a note it reports stopping kernel log daemon when I shutdown

output of /etc/rc.d/init/sysklogd start
Starting system log daemon ok
Starting kernel log daemon fail
 
Old 11-28-2012, 01:05 PM   #9
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Quote:
Originally Posted by spiky0011 View Post
output of /etc/rc.d/init/sysklogd start
Starting system log daemon ok
Starting kernel log daemon fail
So, using /sbin/klogd works. Using the init script doesn't start klogd. But syslog is started, which tells you that the init script seems to be working.

The start_daemon function does return exit codes/messages, which are also logged in case of failure : What have you seen in the logs? If nothing is found you could add (temporarily) the following line to /etc/syslog.conf (and restart sysklogd):
Code:
# save all in one file
*.*                      -/var/log/allmessages
The above would print all that is logged to a file.
 
Old 11-28-2012, 02:03 PM   #10
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,652
Blog Entries: 1

Original Poster
Rep: Reputation: 230Reputation: 230Reputation: 230
Ok

created file allmessages then rebooted
Code:
Nov 28 19:56:22 Planet-Spiky syslogd 1.5.0: restart.
Nov 28 19:56:23 Planet-Spiky /usr/sbin/gpm[1443]: *** info [daemon/startup.c(136)]: 
Nov 28 19:56:23 Planet-Spiky /usr/sbin/gpm[1443]: Started gpm successfully. Entered daemon mode.
Nov 28 19:56:24 Planet-Spiky /usr/sbin/gpm[1443]: *** info [mice.c(1988)]: 
Nov 28 19:56:24 Planet-Spiky /usr/sbin/gpm[1443]: imps2: Auto-detected intellimouse PS/2
Nov 28 19:56:24 Planet-Spiky login[1447]: pam_unix(login:session): session opened for user spiky by LOGIN(uid=0)
Nov 28 19:56:24 Planet-Spiky dbus[1421]: [system] Activating service name='org.freedesktop.ConsoleKit' (using servicehelper)
Nov 28 19:56:25 Planet-Spiky dbus[1421]: [system] Activating service name='org.freedesktop.PolicyKit1' (using servicehelper)
Nov 28 19:56:25 Planet-Spiky polkitd[1522]: Started polkitd version 0.107
Nov 28 19:56:26 Planet-Spiky polkitd[1522]: Loading rules from directory /etc/polkit-1/rules.d
Nov 28 19:56:26 Planet-Spiky polkitd[1522]: Loading rules from directory /usr/share/polkit-1/rules.d
Nov 28 19:56:26 Planet-Spiky polkitd[1522]: Finished loading, compiling and executing 1 rules
Nov 28 19:56:26 Planet-Spiky dbus[1421]: [system] Successfully activated service 'org.freedesktop.PolicyKit1'
Nov 28 19:56:26 Planet-Spiky polkitd[1522]: Acquired the name org.freedesktop.PolicyKit1 on the system bus
Nov 28 19:56:26 Planet-Spiky dbus[1421]: [system] Successfully activated service 'org.freedesktop.ConsoleKit'
Nov 28 19:57:00 Planet-Spiky sudo:    spiky : TTY=tty1 ; PWD=/home/spiky ; USER=root ; COMMAND=/bin/cp -v /var/log/allmessages /home/spiky/Documents/
If I start klogd then this file fills up
 
Old 11-28-2012, 02:17 PM   #11
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Quote:
Originally Posted by spiky0011 View Post
Ok

created file allmessages then rebooted
Code:
Nov 28 19:56:22 Planet-Spiky syslogd 1.5.0: restart.
Nov 28 19:56:23 Planet-Spiky /usr/sbin/gpm[1443]: *** info [daemon/startup.c(136)]: 
Nov 28 19:56:23 Planet-Spiky /usr/sbin/gpm[1443]: Started gpm successfully. Entered daemon mode.
Nov 28 19:56:24 Planet-Spiky /usr/sbin/gpm[1443]: *** info [mice.c(1988)]: 
Nov 28 19:56:24 Planet-Spiky /usr/sbin/gpm[1443]: imps2: Auto-detected intellimouse PS/2
Nov 28 19:56:24 Planet-Spiky login[1447]: pam_unix(login:session): session opened for user spiky by LOGIN(uid=0)
Nov 28 19:56:24 Planet-Spiky dbus[1421]: [system] Activating service name='org.freedesktop.ConsoleKit' (using servicehelper)
Nov 28 19:56:25 Planet-Spiky dbus[1421]: [system] Activating service name='org.freedesktop.PolicyKit1' (using servicehelper)
Nov 28 19:56:25 Planet-Spiky polkitd[1522]: Started polkitd version 0.107
Nov 28 19:56:26 Planet-Spiky polkitd[1522]: Loading rules from directory /etc/polkit-1/rules.d
Nov 28 19:56:26 Planet-Spiky polkitd[1522]: Loading rules from directory /usr/share/polkit-1/rules.d
Nov 28 19:56:26 Planet-Spiky polkitd[1522]: Finished loading, compiling and executing 1 rules
Nov 28 19:56:26 Planet-Spiky dbus[1421]: [system] Successfully activated service 'org.freedesktop.PolicyKit1'
Nov 28 19:56:26 Planet-Spiky polkitd[1522]: Acquired the name org.freedesktop.PolicyKit1 on the system bus
Nov 28 19:56:26 Planet-Spiky dbus[1421]: [system] Successfully activated service 'org.freedesktop.ConsoleKit'
Nov 28 19:57:00 Planet-Spiky sudo:    spiky : TTY=tty1 ; PWD=/home/spiky ; USER=root ; COMMAND=/bin/cp -v /var/log/allmessages /home/spiky/Documents/
If I start klogd then this file fills up
By executing /sbin/klogd -c 3 & or /etc/rc.d/init.d/sysklogd start?

Maybe too obvious, but have you tried replacing the sysklogd init script by a fresh copy from the book? <= Link to latest stable LFS, do check if this is also valid for the LFS version you are using.

Last edited by druuna; 11-28-2012 at 02:20 PM. Reason: added LFS version specific info
 
Old 11-28-2012, 03:08 PM   #12
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,652
Blog Entries: 1

Original Poster
Rep: Reputation: 230Reputation: 230Reputation: 230
Hi

Well the obvious seems to be the way to go It now loads

I have kept the old sysklogd file I will look through it to see if I can spot what has changed.

I do know that I havn't edited the file at all so if there is a change something changed it.
 
  


Reply

Tags
init script, klogd, lfs


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
[SOLVED] LFS6.8 startup problem on kernel log daemon vmsda Linux From Scratch 9 07-29-2014 12:03 PM
How to change Debian log rotation of syslog and daemon.log onmountain Linux - Newbie 2 07-31-2008 02:27 AM
Boot freezes at "Starting HAL daemon" after Kernel recompile DiBosco Linux - Software 2 04-14-2007 05:53 AM
kernel panic after starting snort daemon dracolich Linux - Security 3 07-14-2005 06:08 PM
Starting system log daemon problem trub Linux From Scratch 1 02-19-2002 12:11 PM


All times are GMT -5. The time now is 03:44 AM.

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