Skip to content

Instantly share code, notes, and snippets.

@haarts
Created July 22, 2009 06:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save haarts/151845 to your computer and use it in GitHub Desktop.
Save haarts/151845 to your computer and use it in GitHub Desktop.
#!/bin/bash
export JRUBY_HOME=/opt/jruby/bin/
case $1 in
start)
/opt/jruby/bin/jruby --server -J-Xmx256M -J-Xms256M /var/www/calculator.delaagsterekening.nl/httpdocs/current/main.rb & 2>>/tmp/calculator.out
;;
stop)
kill `cat /var/run/calculator.pid` ;;
*)
echo "usage: calculator {start|stop}" ;;
esac
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment