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