Restart on Task Hang
Written by: Will Kruss on 10 August 2014 10:06 AM
If there isn't enough memory allocated on a server tasks may hang on the server. Find step by step tips to solve it.
Find excellent tutorial on restart on task hang. Know how to setup the server so it restarts if this occurs automatically.
Sometimes on a Linux server, particularly if there isn't enough memory allocated on a server or the tasks being queued cannot be done with the available resources over a period of time, tasks may hang on the server. This can be fatal and cause the server to become unresponsive.
To setup the server so it restarts if this occurs automatically you need:
Login to SSH
To make these settings live without rebooting type:
Edit the configuration file so the changes will also occur after a reboot type:
Add the following to the bottom of the file
To save Press: CTRL O