chkconfig

Posted January 12th, 2009 by marslert

Learn some chkconfig command today. This command is used to maintain the /etc/rc[0-6].d directory hierarchy.

First of all, lets understand and differentiate some of the /etc/rc[0-6].d .

rc1.d >>> Single user mode

rc2.d >>> Custom user mode

rc3.d >>>Multiple user mode with networking availability

rc4.d >>> Custom user mode

rc5.d >>> Multiple user mode with networking availability that has GUI mode (xlogin)

# chkconfig –list
haldaemon       0:off   1:off   2:off   3:on    4:on    5:on    6:off
httpd           0:off   1:off   2:off   3:on    4:off   5:off   6:off
ip6tables       0:off   1:off   2:on    3:on    4:on    5:on    6:off
iptables        0:off   1:off   2:on    3:on    4:on    5:on    6:off
kudzu           0:off   1:off   2:off   3:on    4:on    5:on    6:off
lvm2-monitor    0:off   1:on    2:on    3:on    4:on    5:on    6:off
mcstrans        0:off   1:off   2:on    3:on    4:on    5:on    6:off
messagebus      0:off   1:off   2:off   3:on    4:on    5:on    6:off
multipathd      0:off   1:off   2:off   3:off   4:off   5:off   6:off
mysqld          0:off   1:off   2:off   3:off    4:off   5:off   6:off
netconsole      0:off   1:off   2:off   3:off   4:off   5:off   6:off
netfs           0:off   1:off   2:off   3:on    4:on    5:on    6:off
netplugd        0:off   1:off   2:off   3:off   4:off   5:off   6:off
network         0:off   1:off   2:on    3:on    4:on    5:on    6:off
rdisc           0:off   1:off   2:off   3:off   4:off   5:off   6:off
restorecond     0:off   1:off   2:on    3:on    4:on    5:on    6:off
sshd            0:off   1:off   2:on    3:on    4:on    5:on    6:off
syslog          0:off   1:off   2:on    3:on    4:on    5:on    6:off

Now, mysqld service was set to off for rc3.d . We are going to On it in rc3.d level with below command.

# chkconfig –levels 3 mysqld on

Will see S64mysqld in /etc/rc3.d in my case. I see K36mysqld when levels 3 was off in my case.

4 Responses to “chkconfig”

  1. JYTeh

    Hi,

    Great , thanks for sharing :)
    Anyway,
    rc2.d >> Multiple user mode without networking availability

  2. Marslert

    Hi Teh,

    Thanks for dropping off at my blog. You are corrected :)

  3. DANIEL


    CheapTabletsOnline.Com. Canadian Health&Care.Best quality drugs.No prescription online pharmacy.Special Internet Prices. High quality pills. Buy drugs online

    Buy:Viagra Soft Tabs.Soma.Levitra.Zithromax.Cialis Soft Tabs.Viagra Super Force.Tramadol.Viagra Super Active+.VPXL.Viagra.Cialis Professional.Maxaman.Super Active ED Pack.Cialis.Cialis Super Active+.Viagra Professional.Propecia….

  4. WAYNE


    CheapTabletsOnline.com. Canadian Health&Care.Best quality drugs.Special Internet Prices.No prescription online pharmacy. High quality pills. Order pills online

    Buy:Retin-A.Prevacid.Accutane.Prednisolone.Valtrex.Nexium.Synthroid.Human Growth Hormone.Arimidex.Zyban.Lumigan.Actos.100% Pure Okinawan Coral Calcium.Mega Hoodia.Petcam (Metacam) Oral Suspension.Zovirax….

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>