LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-06-2008, 07:47 AM   #1
exceed1
Member
 
Registered: Mar 2008
Location: oslo
Distribution: debian,redhat
Posts: 199

Rep: Reputation: 31
Question Why are they removing initlog ? - Any alternatives?


Hi

I just enabled initlog to run whenever any system startup script has been run so i can get the status and see if any had failed. I now see that fedora is planning to remove initlog in a future release and they label it as "deprecated".

Does anyone know why they are removing initlog from the system, it would be nice to still have an overview over the status of all system startup scripts. Is there any alternative to initlog for keeping track of if the system startup scripts were ran without problems ?

I also see that other distributions dont have much logging at all when it comes to the system startup scripts and im wondering why.
 
Old 09-06-2008, 08:16 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
Please put your distro and version in your user profile. I don't know who the who in your title is supposed to be.

My system (SuSE) has an /etc/init.d/syslog service for early system logging. Reading the script, it checks for the existance of either syslog or syslog-ng. The configurations for syslog-ng is in /etc/syslog-ng/. Your system may have switched from /sbin/syslog to /sbin/syslog-ng and you are just noticing that the /etc/syslog file isn't there.

Also examine the programs and services that exist in your initrd file.
(such as blogd).

Last edited by jschiwal; 09-06-2008 at 08:20 AM.
 
Old 09-06-2008, 03:45 PM   #3
exceed1
Member
 
Registered: Mar 2008
Location: oslo
Distribution: debian,redhat
Posts: 199

Original Poster
Rep: Reputation: 31
Hmm, thanks for you answer.

The distro and version of it was written in the first post, so i dont understand what the problem is with not having it in my profile. syslog is usually getting log entries from other programs, but i dont think initlog is using syslog at all. What initlog is logging is the status of the system startup scripts, like this output for example:
Sep 6 14:38:20 localhost smartd: smartd shutdown succeeded
Sep 6 14:38:20 localhost avahi-daemon: K02avahi-daemon shutdown succeeded
..

To make it a little more clearer, this is the output from the boot.log file in /var/log, the initlog is logging to this file and initlog is a command. This command is said to be removed in the future releases of fedora and im wondering how i then will get the same information that initlog provides. Im using rsyslogd by the way, an extended version of syslog. When it comes to syslog/rsyslog, i dont know if it can log status of the system startup scripts or maybe it can.. In case it can, what would the facility name be to set up in rsyslogd.conf be (it seems to have the identical syntax to syslog) ?

When it comes to the initrd file, do you mean the initial ram file? You cant mean that can you, Ii dont understand what kind of file you are refering to here.

So, to sum up, i have the following question:
- Why are they removing initlog, can the log entries initlog provides be received from syslog as well, if so, please tell me the facility name

Last edited by exceed1; 09-06-2008 at 03:54 PM.
 
Old 09-09-2008, 02:07 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
Yes, I meant the initrd initial ram file. The first messages occur before the root filesystem is mounted and are written to a file in shared memory.

example:
Code:
inside initrd
jschiwal@hpmedia:~/temp> less /etc/init.d/boot.klog
jschiwal@hpmedia:~/temp> grep shm * -R
boot/05-blogd.sh:       > /dev/shm/initrd.msg
boot/05-blogd.sh:       ln -sf /dev/shm/initrd.msg /var/log/boot.msg
boot/02-start.sh:mkdir -m 1777 /dev/shm
boot/02-start.sh:    > /dev/shm/initrd.msg
boot/02-start.sh:    ln -sf /dev/shm/initrd.msg /var/log/boot.msg
There may be a boot.klogd script in /etc/init.d/ that cats /dev/shm/initrd.msg to

Code:
    test -s /var/log/boot.msg && mv -f /var/log/boot.msg /var/log/boot.omsg
    echo Creating /var/log/boot.msg
    if test -x /sbin/klogd ; then
        # klogd syncs out the file
        /sbin/klogd -s -o -n -f /var/log/boot.msg
        test -s /var/log/boot.msg
        rc_status -v1 -r
    elif test -x /bin/dmesg ; then
        /bin/dmesg > /var/log/boot.msg
        /bin/sync
        test -s /var/log/boot.msg
        rc_status -v1 -r
You will probably be able to find the same boot messages as you had before. Poking around and reading the services and scripts in /etc/init.d/ and inside the initrd file will probably give you the full picture.
 
Old 09-09-2008, 12:50 PM   #5
exceed1
Member
 
Registered: Mar 2008
Location: oslo
Distribution: debian,redhat
Posts: 199

Original Poster
Rep: Reputation: 31
thank you for the time you used to write the reply, but that seems a little too complicated instead of just using a command like initlog, but i will keep it in mind.
 
Old 09-10-2008, 02:56 AM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
It may be complicated as far as the source of the log. But this is behind the scenes and may be occurring with initlog as well. Remember that the logging starts before the root partition is mounted. The different services that log boot commands probably do so to the same file and you only need to examine that file. It may be complicated at first examining the services to find which file will be used in the future. However once you do so, it should be easy. You could create an alias for the old initlog file that uses the less, cat or more commands to examine this file.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
initlog problem c_golan Linux - Newbie 1 01-07-2008 06:34 AM
initlog is deprecated powah Linux - Software 0 11-12-2007 01:30 PM
initlog is deprecated powah Linux - General 0 10-31-2007 03:32 PM
removing text shadows in kde; removing taskbar color gradient webazoid Linux - Software 1 04-11-2006 02:56 AM
What happend to initlog? wittrig Linux - Distributions 0 07-12-2002 12:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:03 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration