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
Copy file name to clipboardExpand all lines: docs/customizations/scripts/general-scripts/kill-all-processes-running-from-the-game-servers-root-folder.mdx
+27-2Lines changed: 27 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -5,16 +5,41 @@ sidebar_label: Kill all processes running from the game server's root folder
5
5
6
6
# Kill all processes running from the game server's root folder
7
7
8
-
This Windows batch script kills all running processes located in the game server's root directory and sub directories.
8
+
These batch/shell scripts kill all running processes located in the game server's root directory and sub directories. You can configure it on the after stopped event.
9
9
10
+
* Windows
10
11
```
11
12
set exelocation=%ThisService_RootDirectory:\=\\%
12
13
wmic path win32_process where "ExecutablePath like '%%%exelocation%%%'" call terminate
13
14
```
14
15
16
+
* Linux
17
+
```
18
+
#!/bin/bash
19
+
20
+
# Remove any trailing slash from the directory path for consistency
0 commit comments