Add System Service Applets in Linux

Source: Internet
Author: User

Add System Service Applets in Linux
How to add a service to the Python code: 1. the service script must be stored in/etc/ini. d/directory; 2. chkconfig -- add servicename add this service to the chkconfig tool service list. The service will be added to/etc/rc. d/rcN. d is assigned to the K/S entry; 3. chkconfig -- level 35 mysqld on modify the default Service Startup level. 1. Add the hello. sh file echo "hello" 2 to the/etc/rc. d/init. d/folder named sayhello # In the/usr/bin directory #! /Bin/bash/usr/bin/hello. sh 3 makes a soft connection ln-s/etc/rc in rc5.d. d/init. d/sayhello/etc/rc5.d/Ssayhello @

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.