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
I might just be missing something obvious but the documents don't seem to have an example of hooking a bash script using prekill_hooks. I'm wondering if that is possible or something that can be added because it would add a bunch of flexibility.
My use case:
a university managing large shared multi user servers
often users have code that'll try and eat up all the memory I kill'em off when near 90% of memory
What I hope to do with oomd is catch that out of control PID or process group and use prekill_hooks to pass that information to a bash script to metric/inform admins and the user before oomd does it's magic making it hard to track down details of what was running.
In the script I would then using stdin or args find out the username and send them an email along with a simple grep of ps -aux | grep <PID?> so they know some details on what got killed.
The text was updated successfully, but these errors were encountered:
I might just be missing something obvious but the documents don't seem to have an example of hooking a bash script using prekill_hooks. I'm wondering if that is possible or something that can be added because it would add a bunch of flexibility.
My use case:
What I hope to do with oomd is catch that out of control PID or process group and use prekill_hooks to pass that information to a bash script to metric/inform admins and the user before oomd does it's magic making it hard to track down details of what was running.
In the script I would then using stdin or args find out the username and send them an email along with a simple grep of
ps -aux | grep <PID?>
so they know some details on what got killed.The text was updated successfully, but these errors were encountered: