Skip to content

Commit 77a7226

Browse files
committed
prefer shell vs dos
1 parent 266dbd1 commit 77a7226

File tree

14 files changed

+41
-41
lines changed

14 files changed

+41
-41
lines changed

nservicebus/gateway/troubleshooting.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,21 +40,21 @@ If the gateway is not listening no response will be received.
4040

4141
To clean and recreate the url acl manually run the following commands from an admin console:
4242

43-
```dos
43+
```shell
4444
netsh http delete urlacl YourUrl
4545
netsh http add urlacl url=YourUrl user="YourMachine\EndpointUsername"
4646
```
4747

4848
For example
4949

50-
```dos
50+
```shell
5151
netsh http delete urlacl http://localhost:25894/MyEndpoint/
5252
netsh http add urlacl url=http://localhost:25894/MyEndpoint/ user="Machine\MyEndpointServiceAccount"
5353
```
5454

5555
To list all urlacls on a machine run
5656

57-
```dos
57+
```shell
5858
netsh http show urlacl
5959
```
6060

nservicebus/hosting/nservicebus-host/installation.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ When running an endpoint within the context of the Visual Studio debugger, the r
1010

1111
To retrieve the list of available options for the host, run the following at the command line:
1212

13-
```dos
13+
```shell
1414
NServiceBus.Host.exe /?
1515
```
1616

@@ -22,7 +22,7 @@ NServiceBus.Host.exe /?
2222
2323
To install the process as a Windows service, include `/install` as a command line argument to the host. Using `/install` also causes the host to invoke the [installers](/nservicebus/operations/installers.md).
2424

25-
```dos
25+
```shell
2626
NServiceBus.Host.exe /install
2727
[/serviceName:<string>]
2828
[/displayName:<string>]
@@ -40,7 +40,7 @@ NServiceBus.Host.exe /install
4040

4141
Here is an example of the `/install` command line:
4242

43-
```dos
43+
```shell
4444
NServiceBus.Host.exe /install
4545
/serviceName:"MyPublisher"
4646
/displayName:"My Publisher Service"
@@ -86,7 +86,7 @@ Configures the name of the endpoint. By default, the endpoint name is the namesp
8686

8787
Configures NServiceBus to scan only the specified assemblies. The `scannedAssemblies` parameter must be provided for each assembly to include. E.g.:
8888

89-
```dos
89+
```shell
9090
NServiceBus.Host.exe /install
9191
/scannedAssemblies:"NServiceBus.Core"
9292
/scannedAssemblies:"NServiceBus.Host"
@@ -141,18 +141,18 @@ A [host profile](profiles.md) can be specified as the last parameter, e.g. `NSer
141141

142142
To uninstall an endpoint service, call
143143

144-
```dos
144+
```shell
145145
NServiceBus.Host.exe /uninstall
146146
```
147147

148148
If a service name is specified when installing a service, be sure to pass it to the uninstall command:
149149

150-
```dos
150+
```shell
151151
NServiceBus.Host.exe /uninstall [/serviceName]
152152
```
153153

154154
For example:
155155

156-
```dos
156+
```shell
157157
NServiceBus.Host.exe /uninstall /serviceName:"MyPublisher"
158158
```

nservicebus/hosting/nservicebus-host/profiles.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,13 @@ To activate a specific profile, pass the full name of the profile in the command
6565

6666
For example, to run the endpoint with the `Integration` and `PerformanceCounters` profiles:
6767

68-
```dos
68+
```shell
6969
.\NServiceBus.Host.exe nservicebus.integration nservicebus.performancecounters
7070
```
7171

7272
When installing the host as a Windows Service, the profiles used during installation are saved, and they are used every time the host starts. In order to install the host with the `Production` and `PerformanceCounters` profiles:
7373

74-
```dos
74+
```shell
7575
.\NServiceBus.Host.exe /install nservicebus.production nservicebus.performancecounters
7676
```
7777

nservicebus/hosting/windows-service.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ related:
1616

1717
When [self-hosting a Windows Service](/samples/hosting/generic-host/), the startup code is in full control of installation. Windows supports these features though the use of the [Service Control tool](https://technet.microsoft.com/en-us/library/cc754599.aspx). For example, a basic install and uninstall commands would be:
1818

19-
```dos
19+
```shell
2020
sc.exe create SalesEndpoint binpath= "c:\SalesEndpoint\SalesEndpoint.exe --run-as-service"
2121
sc.exe delete SalesEndpoint
2222
```
@@ -28,7 +28,7 @@ For completeness, here are some other common usages of the Service Control tool:
2828

2929
The Windows Service name can be configured at creation time, as follows:
3030

31-
```dos
31+
```shell
3232
sc.exe create [ServiceName] binpath= [BinaryPathName]
3333
sc.exe create SalesEndpoint binpath= "c:\SalesEndpoint\SalesEndpoint.exe --run-as-service"
3434
```
@@ -38,7 +38,7 @@ sc.exe create SalesEndpoint binpath= "c:\SalesEndpoint\SalesEndpoint.exe --run-a
3838

3939
The display name can be configured, at creation time, using the `displayname` argument:
4040

41-
```dos
41+
```shell
4242
sc.exe create [ServiceName] displayname= [Description] binpath= [BinaryPathName]
4343
sc.exe create SalesEndpoint displayname= "Sales Endpoint" binpath= "c:\SalesEndpoint\SalesEndpoint.exe --run-as-service"
4444
```
@@ -48,7 +48,7 @@ sc.exe create SalesEndpoint displayname= "Sales Endpoint" binpath= "c:\SalesEndp
4848

4949
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.
5050

51-
```dos
51+
```shell
5252
sc.exe description [ServiceName] [Description]
5353
sc.exe description SalesEndpoint "Service for hosting the Sales Endpoint"
5454
```
@@ -58,7 +58,7 @@ sc.exe description SalesEndpoint "Service for hosting the Sales Endpoint"
5858

5959
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.
6060

61-
```dos
61+
```shell
6262
sc.exe config [ServiceName] depend= <Dependencies(separated by / (forward slash))>
6363
sc.exe config SalesEndpoint depend= MSMQ/MSDTC/RavenDB
6464
```
@@ -81,7 +81,7 @@ The default restart duration is 1 minute when enabling recovery via the Windows
8181

8282
The following example will restart the process after 5 seconds the first time, after 10 seconds the second time and then every 60 seconds. The Restart Service Count is reset after 1 hour (3600 seconds) of uninterrupted work since the last restart.
8383

84-
```dos
84+
```shell
8585
sc.exe failure [ServiceName] reset= [seconds] actions= restart/[milliseconds]/restart/[milliseconds]/restart/[milliseconds]
8686
sc.exe failure SalesEndpoint reset= 3600 actions= restart/5000/restart/10000/restart/60000
8787
```
@@ -101,7 +101,7 @@ Open the services window, select the endpoint Windows Service and open its prope
101101

102102
Username and password can be configured at creation time using the `obj` and `password` parameters.
103103

104-
```dos
104+
```shell
105105
sc.exe create [ServiceName] obj= [AccountName] password= [Password] binpath= [BinaryPathName]
106106
sc.exe create SalesEndpoint obj= MyDomain\SalesUser password= 9t6X7gkz binpath= "c:\SalesEndpoint\SalesEndpoint.exe --run-as-service"
107107
```
@@ -111,7 +111,7 @@ sc.exe create SalesEndpoint obj= MyDomain\SalesUser password= 9t6X7gkz binpath=
111111

112112
The Windows Service start mode can be configured at creation time using the `start` parameter.
113113

114-
```dos
114+
```shell
115115
sc.exe create [ServiceName] start= {auto | demand | disabled} binpath= [BinaryPathName]
116116
sc.exe create SalesEndpoint start= demand binpath= "c:\SalesEndpoint\SalesEndpoint.exe --run-as-service"
117117
```
@@ -121,7 +121,7 @@ sc.exe create SalesEndpoint start= demand binpath= "c:\SalesEndpoint\SalesEndpoi
121121

122122
A Windows Service can be uninstalled using the [sc delete](https://technet.microsoft.com/en-us/library/cc742045.aspx) command.
123123

124-
```dos
124+
```shell
125125
sc.exe delete [ServiceName]
126126
sc.exe delete SalesEndpoint
127127
```

nservicebus/security/generating-encryption-keys.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ snippet: Hex-CSharp
4848

4949
Generates 32 random bytes (256bits) in a base64 encoded output:
5050

51-
```dos
51+
```shell
5252
openssl rand -base64 32
5353
```
5454

@@ -57,7 +57,7 @@ openssl rand -base64 32
5757

5858
Generates 32 random characters (256bits):
5959

60-
```dos
60+
```shell
6161
openssl rand 32
6262
```
6363

persistence/ravendb/uninstalling-v4.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,19 @@ As of 2014-10-15, the Platform Installer no longer installs RavenDB Version 2.0
2525

2626
To list the URACLs for that port, from an **Admin** PowerShell run:
2727

28-
```dos
28+
```shell
2929
netsh.exe http show urlacl | select-string :8080
3030
```
3131

3232
This may return something like the following:
3333

34-
```dos
34+
```shell
3535
Reserved URL: http://+:8080/
3636
```
3737

3838
Remove it with this command:
3939

40-
```dos
40+
```shell
4141
netsh.exe http delete urlacl url=http://+:8080/
4242
```
4343

@@ -50,6 +50,6 @@ There is one additional cleanup step if the PlatformInstaller was used as the me
5050

5151
The following PowerShell command will list the directory which can be safely deleted.
5252

53-
```dos
53+
```shell
5454
dir ("{0}\lib" -f $env:ChocolateyInstall) -Filter *RavenDB* | Select -ExpandProperty FullName
5555
```

persistence/upgrades/asp-saga-deduplication.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ where `<directory>` is the full path of the working directory that the de-duplic
7373

7474
The utility will list saga data classes that it found while scanning the assemblies provided. The list of classes is split into two categories: those classes that have a correlation property and those that do not.
7575

76-
```dos
76+
```shell
7777
$ NServiceBus.AzureStoragePersistence.SagaDeduplicator.exe directory=saga operation=Download
7878

7979
Following saga types have correlation properties

servicecontrol/configure-non-privileged-service-account.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ To run the service this way, the custom service account must have rights to log
9696

9797
For example
9898

99-
```dos
99+
```shell
100100
runas /user:MyDomain\MyTestUser cmd.exe
101101
```
102102

@@ -114,7 +114,7 @@ Once login rights are granted:
114114
1. Shut down the console session.
115115
1. Start the service.
116116

117-
```dos
117+
```shell
118118
ServiceControl.exe --serviceName=Particular.ServiceControl
119119
```
120120

servicecontrol/troubleshooting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ When adding a ServiceControl instance the configured port number is checked to e
3333

3434
In the event that the service fails to start to check if the configured port (typically port 33333) is available. To do this open up an elevated command prompt and issue the following command:
3535

36-
```dos
36+
```shell
3737
netstat -a -b
3838
```
3939
or install and use the provided [ServiceControl Management PowerShell module](https://www.powershellgallery.com/packages/Particular.ServiceControl.Management) cmdlet to check a specific port:

servicepulse/host-config.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ To change it:
1616
1. Edit the value of `ImagePath`. The value contains the full path to the ServicePulse.exe and a command line of the URL to use:
1717

1818
The default value for ImagePath is:
19-
```dos
19+
```shell
2020
"C:\Program Files (x86)\Particular Software\ServicePulse\ServicePulse.Host.exe" --url="http://localhost:9090"
2121
```
2222

2323
Change the value after `--url=` and restart the service.
2424

2525
It may be necessary to reserve the new URL for the account being used to run ServicePulse. For example, to reserve port 9090 for all users:
26-
```dos
26+
```shell
2727
netsh http add urlacl url=http://+:9090/ user=Everyone
2828
```
2929

0 commit comments

Comments
 (0)