Solve the reason why Linux/etc/rc.local machine does not perform

Source: Internet
Author: User

Not long ago, because the project needs to write a shell script to start other programs, because the work is busy, debugging to the technical support staff, also did not pay attention to.

To later, there are several servers suddenly restarted, this time the leader asked, how to boot the script did not work, but also was granted a meal, hey, do things out of the question, deserved!

And check it out, and never find out why,

Manual execution is correct, in the exclusion of permissions and scripting problems, very depressed, how to put in the boot project can not be executed.

Then check the Linux boot process information. Google, looked at some of the boot startup information, found the boot program level of 3.

Resolute Shun Vine, found this directory/etc/rc.d/rc3.d, in a look at the epiphany.

My rc.local file is in the/etc/rc.local (online is said to be written here, I do it on the Internet), and I looked at the system pointing to the Rc.local file path is/etc/rc.d/rc.local

Later the boot-up script is configured to/etc/rc.d/rc.local (or s99local point to/etc/rc.local), reboot check, success!

Solve the reason why Linux/etc/rc.local machine does not perform

Related Article

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.