Linux system boot level

Source: Internet
Author: User

How do I start a service at the specified level?

650) this.width=650; "src=" Https://s5.51cto.com/oss/201710/24/b421c43bdd382c158e90e24d672b2108.png "title=" 21212. PNG "alt=" B421c43bdd382c158e90e24d672b2108.png "/>

edit this file add these two words at the bottom


650) this.width=650; "src=" Https://s2.51cto.com/oss/201710/24/377a5eef07cf5e6812ddc0e1b229059a.png "title=" Qq20171024195048.png "style=" Float:none; "alt=" 377a5eef07cf5e6812ddc0e1b229059a.png "/>

650) this.width=650; "src=" Https://s5.51cto.com/oss/201710/24/3506c80500310df8c068a375fe2bc4d4.png "title=" shake. png " Style= "Float:none;" alt= "3506c80500310df8c068a375fe2bc4d4.png"/>

Close at the specified level

You can also turn off 345.


Test:

Start the SSHD service at level 3

Found that there was a k25sshd file produced

And at level 3, it's closed.

Delete this soft link file k25sshd

Re-create a new soft link file called S55sshd file

Look again, sshd turned into a 3-level launch.


[[email protected] 16:43:39] #ll/etc/rc.d/rc3.d/| grep "Sshd"

lrwxrwxrwx 1 root root from Oct 3 14:46 s55sshd. /init.d/sshd

650) this.width=650; "src=" Https://s1.51cto.com/oss/201710/24/e0ef28bb7721c59fade50d535cc45cc7.png "title=" Qq20171024195048.png "alt=" E0ef28bb7721c59fade50d535cc45cc7.png "/>


Suppose you get a boot up at a certain level.

first must be under the/etc/init.d/ or chkconfig can't manage


[[email protected] 16:59:20] #cat TMD (optimistic working directory)

#chkconfig: 35 56 27

# DESCRIPTION:TMD

Echokao ........

Content as above

#chkconfig--add TMD Add

650) this.width=650; "src=" Https://s1.51cto.com/oss/201710/24/dc49fb456283c48ca2bfd48f2612e9c2.png "title=" 1.png " Width= "666" height= "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width:666px;height:38px; "alt=" Dc49fb456283c48ca2bfd48f2612e9c2.png "/>

3 and 5 are on .

650) this.width=650; "src=" Https://s5.51cto.com/oss/201710/24/1e7a2c33bea9bb1367454fc7062bd3fa.png "title=" 2.png " Width= "666" height= "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width:666px;height:41px; "alt=" 1e7a2c33bea9bb1367454fc7062bd3fa.png "/>

The order is in the script, just defined inside

Execute Permissions  it's not defined. !!







This article is from the "11745576" blog, please be sure to keep this source http://11755576.blog.51cto.com/11745576/1975790

Linux system boot level

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.