Skip to content

Commit 5a5196a

Browse files
author
Wilfried Goesgens
committed
killall arangod for the wintendo
1 parent 3f9c8a4 commit 5a5196a

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

attic_snippets/killall.py

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import psutil
2+
import time
3+
4+
arangods = []
5+
for process in psutil.process_iter(['pid', 'name']):
6+
x=""
7+
try:
8+
x = process.name()
9+
except: # access denied...
10+
x = ""
11+
continue
12+
if x == "arangodb.exe":
13+
print('killing ' + str(process))
14+
process.kill()
15+
elif x == "arangod.exe":
16+
arangods += [process]
17+
time.sleep(5)
18+
for arangod in arangods:
19+
print('killing ' + str(arangod))
20+
arangod.kill()
21+
print('done')
22+
time.sleep(5)

attic_snippets/psgreparangod.py

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import psutil
2+
import time
3+
4+
for process in psutil.process_iter(['pid', 'name']):
5+
x=""
6+
try:
7+
x = process.name()
8+
except:
9+
x = ""
10+
continue
11+
if x == "arangod.exe":
12+
print(process.cmdline())
13+
if x == "arangodb.exe":
14+
print(process.cmdline())

0 commit comments

Comments
 (0)