Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
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.
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.
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.
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?
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.