Is there anyway to prevent a process from being killed no matter what? I know about nice
but I'm not sure if giving a task such as a long running memory-intensive rake
task the highest priority will prevent it from being killed off:
nice -n -20 rake xyz
Edit: The original poster most likely wants it to be high priority even if the server is low on resources as well, so much so that other processes get killed first.