You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For completeness, here are some other common usages of the Service Control tool:
23
+
> [!NOTE]
24
+
> A space is required between an option and its value (for example, `binpath= "c:\SalesEndpoint\SalesEndpoint.exe --run-as-service"`). If the space is omitted, the operation will fail.
24
25
26
+
For completeness, here are some other common usages of the Service Control tool:
The description can be changed, after the Windows Service has been created, using the [sc description](https://technet.microsoft.com/en-us/library/cc742069.aspx) command.
sc.exe description SalesEndpoint "Service for hosting the Sales Endpoint"
53
53
```
54
54
55
-
56
55
### Specifying Service dependencies
57
56
58
-
The dependencies of a Windows Service can be configured after it has been created using the [sc config](https://technet.microsoft.com/en-us/library/cc990290.aspx) command.
57
+
The dependencies of a Windows Service can be configured after it has been created using the [sc config](https://technet.microsoft.com/en-us/library/cc990290.aspx) command. Dependencies are listed one after the other, separated by a `/` (forward slash).
59
58
60
59
```shell
61
-
sc.exe config [ServiceName] depend= <Dependencies(separated by / (forward slash))>
Windows has a Windows Service recovery mechanism that makes sure a crashed process will be restarted.
@@ -73,7 +71,6 @@ If Windows Service Recovery is not configured, message processing will halt. The
73
71
74
72
The recovery options can be adjusted via the Services dialog or via `sc.exe`. Note that the command line tool has advanced configuration options.
75
73
76
-
77
74
#### Configuring Windows Service Recovery via sc.exe
78
75
79
76
The default restart duration is 1 minute when enabling recovery via the Windows Service Management Console, but a different restart duration may be defined for the subsequent restarts using `sc.exe`.
0 commit comments