The service does not support chkconfig resolution

Source: Internet
Author: User

Wrote a script that wanted to load the chkconfig with a command. Prompt "* * Service does not support Chkconfig", the original is the script written by yourself, forget to write two lines. This is usually the beginning.

#!/bin/bash
#chkconfig: 345 61 61//This line of 345 parameters indicates at which run level the boot sequence number (S61), the off Sequence number (K61), and the previous serial number with 124 and 224, then the change to two is successful, and I don't know why
#description: Apache//This will be written to describe the service.

Copy the script to the/etc/init.d/directory and execute the command:
#ln-S/ETC/INIT.D/HTTPD/ETC/RC.D/RC3.D/S61HTTPD
#ln-S/ETC/INIT.D/HTTPD/ETC/RC.D/RC4.D/S61HTTPD
#ln-S/etc/init.d/httpd/etc/rc.d/rc5.d/s61httpd re-execution
#chkconfig--levels httpd 345 on

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.