Linux From ScratchThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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
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)?
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.
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/
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.