File tree 2 files changed +36
-0
lines changed
2 files changed +36
-0
lines changed Original file line number Diff line number Diff line change
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 )
Original file line number Diff line number Diff line change
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 ())
You can’t perform that action at this time.
0 commit comments