I need to prevent termination of a critical process. A very annoying thing that happens is my VPS likes to kill processes it doesn't like when the RAM gets low. What ends up happening is this critical process gets killed first. This is very bad because the if the VPS IP cycles and the process gets killed, I am completely out of luck because the process can't connect to me and send the VPS's new external IP address.
I don't care if the killing is justifiable. I want to keep this process alive at all costs, and I don't care what measures I have to take. This process is the gateway to my system and I need it alive no matter what.
From comment: This process can not be killed. If this process is killed, consider my server completely inaccessible. This can not happen. I can't be expected to optimize services to not use RAM. The OS will still kill them if they use too much. But this one process is VERY IMPORTANT and must be kept alive at all costs.