LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-12-2013, 10:45 PM   #1
tranphat
Member
 
Registered: Dec 2013
Posts: 86

Rep: Reputation: Disabled
chkconfig output meaning


Code:
Hi everyone,
I use chkconfig to enable bootlogd as start-up service
	chkconfig bootlogd on
Afterthat, I recheck with chkconfig --list, the output as below
        bootlogd 0:off 1:off 2:off 4:off 5:off 6:off S:on
Why are the level 2,3,4,5 off? What is the meaning of S:on at the end of bootlogd's output?
I have tried chkconfig with apache2, and the output is below, differently with bootlogd
	chkconfig apache2 on
	chkconfig --list
        apache2 0:off 1:off 2:on 3:on 4:on 5:on 6:off
The level 2,3,4 5 of apache2 are on but it does not have S:on at the end of line.
Could you please explain to me this difference? Any help is appreciated.
 
Old 12-12-2013, 11:13 PM   #2
sunilpopaliya
Member
 
Registered: Apr 2012
Posts: 47

Rep: Reputation: 4
Hello,

0,1,2,3,4,5,6 are run levels. If service is on for particular run level means service will start automatically when server will boot on that particular run level. If service is off for particular boot level then it is vice versa.

If you want to start bootlogd service for particular runlevel use the below command:

chkconfig --level <run level in which you want to start service automatically> service-name on

I don't know about Sn. I don't have any option like Sn/off in chkconfig --list command output for my server.

Thanks
======
Sunil
 
Old 12-13-2013, 12:14 AM   #3
tranphat
Member
 
Registered: Dec 2013
Posts: 86

Original Poster
Rep: Reputation: Disabled
Code:
Hi Sunil,

I understand that the 0...6 are the run level. The problem here I want to ask that when I issue chkconfig apache2 on, the 2, 3, 4, 5 run levels are turned "on" but issuing chkconfig bootlogd on, the 2,3,4,5 run levels are still "off" and S is turned on "S:on" appears next to 6. If you issue chkconfig bootlogd off, the result is: --> "S:Off"

For example:
acpid                     0:off  1:off  2:on   3:on   4:on   5:on   6:off
apache2                   0:off  1:off  2:on   3:on   4:on   5:on   6:off
atd                       0:off  1:off  2:on   3:on   4:on   5:on   6:off
bootlogd                  0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on
bootlogs                  0:off  1:off  2:off  3:off  4:off  5:off  6:off
bootmisc.sh               0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on
checkfs.sh                0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on
checkroot-bootclean.sh    0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on
checkroot.sh              0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on
console-setup             0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on
cron                      0:off  1:off  2:on   3:on   4:on   5:on   6:off
exim4                     0:off  1:off  2:on   3:on   4:on   5:on   6:off
hostname.sh               0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on
hwclock.sh                0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on
kbd                       0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on
keyboard-setup            0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on
killprocs                 0:off  1:on   2:off  3:off  4:off  5:off  6:off
kmod                      0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on


As you can see, besides 6 run levels, there also is "S:on" appearing. I want to know why 2,3,4,5 are not turned "on" when chkconfig bootlogd on and the meaning of S:on/off.
 
Old 12-13-2013, 12:23 AM   #4
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,263
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
S is system initialization - happens before ALL run-levels.

Since bootlogd is S: on there is no point to have it on in individual run-levels.

Last edited by astrogeek; 12-13-2013 at 12:26 AM.
 
Old 12-13-2013, 12:40 AM   #5
tranphat
Member
 
Registered: Dec 2013
Posts: 86

Original Poster
Rep: Reputation: Disabled
Hi astrogeek,

It means that bootlogd is always started automatically when the system starts up?

I give it a try. When system is up, bootlogd isn't started and I must start it manually.
 
Old 12-13-2013, 12:42 AM   #6
sunilpopaliya
Member
 
Registered: Apr 2012
Posts: 47

Rep: Reputation: 4
Hello,

If you want to start bootlogd service for 2,3,4,5 run levels, run below command

chkconfig --level 2,3,4,5 bootlogd on


then check the output of chkconfig --list


Thanks
------
Sunil
 
Old 12-13-2013, 12:58 AM   #7
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,263
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
Quote:
Originally Posted by tranphat View Post
Hi astrogeek,

It means that bootlogd is always started automatically when the system starts up?

I give it a try. When system is up, bootlogd isn't started and I must start it manually.
It means that bootlogd runs during boot - system initialization. It stopped when the system enters one of the higher run-levels. I suppose you could restart it and have it run for example in run level 4, but why would you - it is for logging boot messages, right?
 
Old 12-13-2013, 01:34 AM   #8
tranphat
Member
 
Registered: Dec 2013
Posts: 86

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by sunilpopaliya View Post
Hello,

If you want to start bootlogd service for 2,3,4,5 run levels, run below command

chkconfig --level 2,3,4,5 bootlogd on


then check the output of chkconfig --list


Thanks
------
Sunil
Hi Sunil,
I did it. But the main question is why in case of apache2, 2,3,4,5 run levels are turned on(chkconfig apache2 not specifies any run level) but bootlogd is not?

Hi astrogeek,

That's right. This tool is used to log booting message. It's located in /var/log/boot. I understand what you would like to say

Last edited by tranphat; 12-13-2013 at 01:35 AM. Reason: more descriptive
 
  


Reply



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
Meaning of iptables output kaplan71 Linux - Security 1 11-19-2011 06:47 PM
meaning of output of ldd command _Linux_Learner Linux - Newbie 3 11-16-2010 07:17 AM
Meaning of file command output _Linux_Learner Linux - Newbie 4 02-28-2010 07:29 AM
Chkconfig output wjs1990 Linux - Newbie 1 12-07-2009 08:06 PM
diff output meaning sloganyart Linux - Software 4 10-13-2009 01:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:26 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
Open Source Consulting | Domain Registration