啟動/停止服務Start/Stop Service

重要

此版本的 Orchestrator 已達終止支援,建議您 升級至 Orchestrator 2019This version of Orchestrator has reached the end of support, we recommend you to upgrade to Orchestrator 2019.

啟動/停止服務活動將會啟動、停止、暫停或重新開機 Windows 服務。The Start/Stop Service activity will start, stop, pause, or restart a Windows service. 啟動/停止服務活動可以用來重新開機已停止回應的服務,或在準備備份時關閉服務。The Start/Stop Service activity can be used to restart a service that has stopped responding or shut down a service in preparation for a backup. 此活動會使用附屬授權。This activity uses a satellite license.

設定啟動/停止服務活動Configuring the Start/Stop Service Activity

設定「啟動/停止服務」活動之前,您需要決定下列各項:Before you configure the Start/Stop Service activity you need to determine the following:

  • 服務名稱The service name

  • 正在執行服務的電腦The computer where the service is running

  • 啟動服務時所需的參數。Parameters that are required to start the service.

    注意

    這取決於您要與之互動的服務;這可能不是必要的。This depends on the service you are interacting with; it may not be required.

您可以使用下列資訊來設定啟動/停止服務活動。Use the following information to configure the Start/Stop Service activity.

[詳細資料] 索引標籤Details Tab

設定Settings 組態指示Configuration Instructions
動作Action 選取您要對服務採取下列其中一項動作:Select one of the following actions that you want to take on the service:

- 啟動服務:如果服務已停止,請啟動該服務。- Start service: Start the service if it is stopped. 如果服務已在執行中,則會忽略這個動作。This action is ignored if the service is already running.
- 停止服務:停止正在執行的服務。- Stop service: Stop a running service. 如果服務已停止,則會忽略這個動作。This action is ignored if the service is already stopped.
- 暫停服務:暫停正在執行的服務。- Pause service: Pause a running service. 如果服務已停止或暫停,則會忽略這個動作。This action is ignored if the service is already stopped or paused.
- 重新開機服務:停止然後啟動正在執行的服務。- Restart service: Stop then start a running service. 如果服務已停止,則只會啟動它。If the service is already stopped it will only be started.
電腦Computer 輸入正在執行此服務的電腦。Type the computer where this service is running. 輸入 localhost 以指定正在處理 runbook 的 runbook 伺服器。Type localhost to specify the runbook server where the runbook is being processed. 您也可以使用省略號 ** ( ... ) ** 按鈕來流覽電腦。You can also use the ellipsis (...) button to browse for the computer.
服務Service 輸入此服務的名稱。Type the name of the service. 您也可以使用省略號 ** ( ... ) ** 按鈕來流覽服務。You can also use the ellipsis (...) button to browse for the service. 只有在您已指定有效的 電腦時,才能使用流覽功能。Browsing is only available if you have specified a valid Computer.
參數Parameters 輸入與 服務互動所需的任何參數。Type any parameters that are required to interact with the Service.
動作必須在小於Action must complete in less than 指定動作必須完成的最大時間量。Specify the maximum amount of time in which the action must complete. 時間過期之後,啟動/停止服務活動將會超時,並傳回失敗。After the time has expired, the Start/Stop Service activity will timeout and return a failure.

已發佈資料Published Data

下表列出已發佈的資料項目。The following table lists the published data items.

ItemItem 描述Description
服務顯示名稱Service display name 出現在 [Windows 服務] 控制台公用程式中的服務名稱。The name of the service as it appears in the Windows Services control panel utility.
服務真實名稱Service real name 服務正在執行之已執行檔案的名稱。The name of the ran file that the service is running.
服務狀態Service status 服務的目前狀態。The current status of the service.
服務電腦Service computer 服務所在的電腦名稱稱。The name of the computer where the service is located.
控制參數Control Parameters 啟動、停止、暫停或重新開機時傳遞給服務的參數。The parameters that were passed to the service when it was started, stopped, paused or restarted.
控制時間額度Control Time Allowance 指定完成啟動、停止、暫停或重新開機服務動作的最大時間量。The maximum amount of time that was specified to complete the Start, Stop, Pause, or Restart of service action.
控制動作Control Action 服務上所採取的動作:啟動、停止、暫停或重新開機。The action that was taken on the service: Start, Stop, Pause, or Restart.