1234567891011121314151617181920212223 |
- #!/usr/bin/env bash
- _maglev_gemstone()
- {
- case "$1" in
- start)
- export MAGLEV_HOME="$rvm_ruby_home"
- export GEMSTONE_GLOBAL_DIR=$MAGLEV_HOME
- if
- [[ -x "$MAGLEV_HOME/gemstone/bin/gslist" ]]
- then
- if
- "$MAGLEV_HOME/gemstone/bin/gslist" -clv > /dev/null 2>&1
- then
- true # it's running already
- else
- "$rvm_ruby_home/bin/maglev" start
- fi
- fi
- ;;
- esac
- }
|