Linux executes a specific task after the network is started

Source: Internet
Author: User

Linux runs A specific task after the network is started. In the traditional linux Startup Process, the dependency processing of Service Startup occurs. For example, service B must be started only after service A is started. in this way, service B usually requires a lot of tests when starting. upstart is A new startup mechanism based on events, so that after service A starts, it can send an event to trigger startup of Service B. for example, a service must be executed after the network is started. you can define the upstart file of this service to reference start on (net-device-up) exec/usr/sbin/bar. sh bar. sh will be started after the NIC is started

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.