Add and delete Linux services, autorun and status

  

CAMS will automatically add related services during the installation process. During the final installation process, users will be prompted whether to start the service to make the service take effect. It should be noted that a service is added. This does not mean that the service will run automatically during system startup, only that the service command can be used to start the stop service.

1. The procedure for adding a service to add a service is:

a. Copy the script file of the service into the /etc/rc.d/init.d folder to ensure its status is OK. Execute b. Use the chkconfig command to add the service to the list of services chkconfig --add camsd (note that there are two -)

After adding the service, the service can be started/stopped using service

2. Deleting a service If you want to delete a service, change the add of the above command to del to chkconfig --del camsd (note that there are two -)

3. Set the service to automatically run Linux. The 7 running levels use 0-6 to indicate that the console interface runs at level 3, and the graphical interface runs at level 5. To enable a service to run automatically when the system starts, use chkconfig to add the service to the corresponding level of self-starting service. Just in the list. Chkconfig --level 35 camsd on (note that there are two -) The above command adds the camsd service to the self-starting service list at level 3 5, while the following command will serve the servicesd self-starting service at level 3 5 Delete from the list: chkconfig --level 35 camsd off (note that there are two -) If you need to view the self-start status information of a service, use the following command: chkconfig --list camsd (note that there are two -)

Copyright © Windows knowledge All Rights Reserved