maglev 453 B

1234567891011121314151617181920212223
  1. #!/usr/bin/env bash
  2. _maglev_gemstone()
  3. {
  4. case "$1" in
  5. start)
  6. export MAGLEV_HOME="$rvm_ruby_home"
  7. export GEMSTONE_GLOBAL_DIR=$MAGLEV_HOME
  8. if
  9. [[ -x "$MAGLEV_HOME/gemstone/bin/gslist" ]]
  10. then
  11. if
  12. "$MAGLEV_HOME/gemstone/bin/gslist" -clv > /dev/null 2>&1
  13. then
  14. true # it's running already
  15. else
  16. "$rvm_ruby_home/bin/maglev" start
  17. fi
  18. fi
  19. ;;
  20. esac
  21. }