Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In windows service what is the difference between stop and pause?

When developing Window Service Apps, what is the difference between stop and pause?

Do developers distinguish between the two?

like image 432
user1034912 Avatar asked Mar 21 '13 19:03

user1034912


People also ask

How do I stop a Windows service automatically?

Open Start. Search for PowerShell, right-click the top result, and select the Run as administrator option. Type the following command to disable a service and press Enter: Set-Service -Name "SERVICE-NAME" -Status stopped -StartupType disabled In the command, update "SERVICE-NAME" for the name of the service.

What are start/stop services?

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.

How do I automatically start services in Windows 10?

To change a service startup behavior, select the General tab, then click in the “Startup type:” list box then choose one of the four available options: Automatic (delayed) – Service start after Windows 10 is completely booted. Automatic – Service will start when Windows 10 starts.


1 Answers

When a service is paused, it can maintain internal state, including cached information or possibly even a queue of waiting work items. The service can then be resumed to pick up where it left off.

If the service is stopped, internal state is discarded. Starting the service again should repeat all initialization.

Developers do distinguish between the two. The distinction is very important when a service has a non-trivial initialization process.

For more information on `service states' see Introduction to Windows Services

like image 155
Mark Taylor Avatar answered Sep 17 '22 01:09

Mark Taylor