aboutsummaryrefslogtreecommitdiffstats
path: root/docs/content/doc/installation/windows-service.en-us.md
diff options
context:
space:
mode:
authorMatthew Bramer <515152+iOnline247@users.noreply.github.com>2019-12-13 00:13:38 -0500
committertechknowlogick <techknowlogick@gitea.io>2019-12-13 00:13:38 -0500
commit39db99a5956f3c41ceba6b9afe452af52a369db0 (patch)
treed08cb1d7c95259f61114bd48b2a7b468facffc8d /docs/content/doc/installation/windows-service.en-us.md
parent6442e003c561e77e01bf6ccfc8961f24b0538fd6 (diff)
downloadgitea-39db99a5956f3c41ceba6b9afe452af52a369db0.tar.gz
gitea-39db99a5956f3c41ceba6b9afe452af52a369db0.zip
Supports both CMD and PowerShell (#9344)
sc is aliased to Set-Content in PowerShell and these commands will not work without the `.exe` extension.
Diffstat (limited to 'docs/content/doc/installation/windows-service.en-us.md')
-rw-r--r--docs/content/doc/installation/windows-service.en-us.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/content/doc/installation/windows-service.en-us.md b/docs/content/doc/installation/windows-service.en-us.md
index 8e3b63a1c8..9c36786cfa 100644
--- a/docs/content/doc/installation/windows-service.en-us.md
+++ b/docs/content/doc/installation/windows-service.en-us.md
@@ -40,7 +40,7 @@ To register Gitea as a Windows service, open a command prompt (cmd) as an Admini
then run the following command:
```
-sc create gitea start= auto binPath= "\"C:\gitea\gitea.exe\" web --config \"C:\gitea\custom\conf\app.ini\""
+sc.exe create gitea start= auto binPath= "\"C:\gitea\gitea.exe\" web --config \"C:\gitea\custom\conf\app.ini\""
```
Do not forget to replace `C:\gitea` with the correct Gitea directory.
@@ -54,5 +54,5 @@ that was configured).
To unregister Gitea as a service, open a command prompt (cmd) as an Administrator and run:
```
-sc delete gitea
+sc.exe delete gitea
```