Skip to content

Instantly share code, notes, and snippets.

@helxsz
Created November 17, 2013 08:21
Show Gist options
  • Save helxsz/7510774 to your computer and use it in GitHub Desktop.
Save helxsz/7510774 to your computer and use it in GitHub Desktop.
failed-monit-memory-script.sh
description "Memory Monitor"
author "Joe McCann"
start on startup
stop on shutdown
script
if memory usage > 75% then exec killall node
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment