Add a boot script under Ubuntu

Source: Internet
Author: User
Add the boot script for Ubuntu. after Ubuntu is started, it will execute the script in the/etc/rc. local file, so we can directly add the boot script in/etc/rc. local. Of course, you must add it to the statement before exit0. For example, sudovi/etc/rc. local and then in exit... add the boot script for Ubuntu. after Ubuntu is started,/etc/rc will be executed. the script in the local file, so we can directly go to/etc/rc. add the startup script in local. Of course, you must add it to the statement before exit 0. For example, sudo vi/etc/rc. local and add the script code before exit 0. Later, I will try again to add a startup service for Ubuntu. If you want to add a script file for startup, copy the script or connect it to/etc/init first. d/directory, and then use the: update-rc.d xxx defaults NN command (NN for the startup order) to add the script to the queue for initialization execution. Note: If the script needs to use the network, NN needs to set a relatively large number, such as 98.
 

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.