Stop high-load programs, if they get out of control:
amule likes to defunct.
LOAD=$(cat /proc/loadavg |cut -d . -f 1); if [[ "$LOAD" -gt 3 ]]; then skill amule sleep 3 skill -KILL amule fi
this as a cronjob.
Stop high-load programs, if they get out of control:
amule likes to defunct.
LOAD=$(cat /proc/loadavg |cut -d . -f 1); if [[ "$LOAD" -gt 3 ]]; then skill amule sleep 3 skill -KILL amule fi
this as a cronjob.
This entry was posted on Tuesday, November 14th, 2006 and is filed under fun with Linux. You can follow any responses to this entry through RSS 2.0. You can leave a response, or trackback from your own site.
Fusion theme by digitalnature | powered by WordPress
Entries (RSS) and Comments (RSS) ^
Recent Comments