Browse Source

Also kill processes of g accounts

pull/11/head
B.E. Droge 3 years ago
parent
commit
6fd60156c0
  1. 2
      roles/kill_memory_hogs/files/kill_hoggs.py

2
roles/kill_memory_hogs/files/kill_hoggs.py

@ -125,7 +125,7 @@ def kill_hogs(memory_threshold, @@ -125,7 +125,7 @@ def kill_hogs(memory_threshold,
continue # do not kill root processes.
# Check username here. It is somewhat expensive.
username = proc.username()
if not ((username[0] in ('s', 'p', 'f') and username[1:].isdigit())
if not ((username[0] in ('s', 'p', 'f', 'g') and username[1:].isdigit())
or username[:5] == 'umcg-'):
continue # we only kill processes of p, s and f accounts

Loading…
Cancel
Save