Windows Service oncustomcommand

Source: Internet
Author: User
 

OncustomcommandAllows you to specify out-of-the-box functions other than dynamic motion, stop, stop, and renew services.

SCM will not check the self-Signed command to verify whether the Service supports inboundCommandData. It directly uploads the command from the terminal to the server. If the service cannot be recognizedCommandNo action is required.

Self-built commandsServicecontrollerInExecutecommandDescription.Use the switch statement or the if .. Then condition to handle the self-built commands you have defined in the service.

You can define orOncustomcommandThe number of self-built commands used in can only be between 128 and 256. The value of the total number reserved by the system for less than 128.

If autolog featuresTrueThe self-built Command records the logs into the event as all other commands, and reports the success or failure of the operation.

Related Article

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.