Skip to content

Instantly share code, notes, and snippets.

@sbp
Created January 19, 2010 22:37
Show Gist options
  • Save sbp/281380 to your computer and use it in GitHub Desktop.
Save sbp/281380 to your computer and use it in GitHub Desktop.
#!/bin/bash
function cleanup() {
echo Quitting
kill -9 %1
exit
}
trap cleanup 2
~/bin/redis-server &
~/bin/node server.js 8123
cleanup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment