Chkconfig Add Service error services memcached does not support Chkconfig

Source: Internet
Author: User
Tags memcached

Chkconfig Add service error, prompt XXX service does not support


Fault Original:

[Email protected] ~]# chkconfig--add memcached

Service memcached does not support Chkconfig


Fault Description:

Unable to add hint the error was not added to the chkconfig level in the startup script of the service


Solution:

We usually add the following two sentences at the beginning of the script.

#gedit/etc/init.d/memecached

Add the following two sentences to #!/bin/bash.

# chkconfig:2345 # description:memcached ....

Where 2345 is the default boot level, with a level of 0-6 and a total of 7 levels.

Level 0 means: shutdown

Level 1 means: Single user mode

Level 2: Multi-user command line mode with no network connection

Level 3 means: Multi-user command line mode with network connection

Level 4 means: not available

Level 5 means: Multi-user mode with graphical interface

Level 6 means: reboot

10 is the start priority, 90 is the stop priority, the priority range is 0-100, the greater the number, the lower the priority.


Such as:

[Email protected] ~]# cat/etc/init.d/memcached

#!/bin/sh

# chkconfig:2345 10 90

# description:memcached ....

/usr/local/bin/memcached-p 11211-u root-m 1024m-c 10240-d-p/tmp/memcached.pid


And then add it again.

[Email protected] ~]# chkconfig--add memcached

This article is from the "11002498" blog, please be sure to keep this source http://11012498.blog.51cto.com/11002498/1859902

Chkconfig Add Service error services memcached does not support Chkconfig

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.