In order to facilitate the management services on the linux server, a lot of people like to use this way service nginx start to manage, it is a system service
so that you can set to automatically start

chkconfig --level 35 nginx on
service nginx start|stop|status|reload
 

Software service script compiler installed were located in / usr / local under / sbin directory, for example,

cp /usr/local/sbin/rc.radiusd /etc/init.d/radius
 

 

Commands

So many times we've created a script, right after he copied to /etc/init.d after using chkconfig --add nginx when such errors occur below

service xxxx does not support chkconfig
 

That solution is as follows:
Add the following two lines to the beginning of the script:

#chkconfig: - 85 15
#description: nginx is a World Wide Web server. It is used to serve
 

Do not remove the pound sign.

 

Why the service does not support chkconfig, there is another very important
is executable permissions

chmod +x /etc/init.d/php-fpm



https://blog.51cto.com/professor/1579791