arangodb / docs

⚠ DEPRECATED! Source code of the legacy ArangoDB online documentation. See arangodb/docs-hugo
https://github.com/arangodb/docs-hugo/
Apache License 2.0
20 stars 58 forks source link

Windows commands for administrating ArangoDB #344

Closed Simran-B closed 2 years ago

Simran-B commented 4 years ago

Pages about operating ArangoDB, such as upgrading starter deployments https://www.arangodb.com/docs/stable/upgrading-starter.html do not tell you that the commands are Linux-only (possibly macOS and Cygwin as well). As long as we support Windows as a platform, we should provide commands for that OS as well.

However, the following is not very nice to use:

diff --git 3.7/upgrading-starter.md 3.7/upgrading-starter.md
index 737294f58..603fe650a 100644
--- 3.7/upgrading-starter.md
+++ 3.7/upgrading-starter.md
@@ -117,12 +117,24 @@ default setting `KillMode=control-group`.
 kill -9 <pid-of-starter>
 \```

-The _pid_ associated to your _Starter_ can be checked using a command like _ps_:
+On Windows you may use `taskkill`:
+
+\```powershell
+taskkill /PID <pid-of-starter>
+```
+
+The _pid_ associated to your _Starter_ can be checked using a command like `ps`:

 \```bash
 ps -C arangodb -fww
 \```

+On Windows you may use `tasklist`:
+
+\```powershell
+tasklist /FI "IMAGENAME eq arangodb.exe"
+```
+
 The output of the command above does not only show the PID's of all _arangodb_
 processes but also the used commands, which can be useful for the following
 restart of all _arangodb_ processes.
@@ -149,6 +161,9 @@ arangodb(29419)<E2><94><80><E2><94><AC><E2><94><80>arangod(30201)
                 <E2><94><94><E2><94><80>arangod(30217)
 \```

+On Windows you may use the _Process Tree_ tool of
+[Process Monitor](https://docs.microsoft.com/de-de/sysinternals/downloads/procmon){:target="_blank"}.
+
 ### Restart the _Starter_

 When using a supervisor like _SystemD_, this will happen automatically. In case

We should use a widget with tabs that let's you pick the right OS and remember that choice. The commands obviously need testing, so this is a rather large undertaking.

Simran-B commented 2 years ago

Needs management decision whether we want to put any effort into non-Linux commands and terminals.