Guest User

Untitled

a guest
Sep 26th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. diff --git a/bin/gremlin.sh b/bin/gremlin.sh
  2. index 28da54a..9566e95 100644
  3. --- a/bin/gremlin.sh
  4. +++ b/bin/gremlin.sh
  5. @@ -1,6 +1,8 @@
  6. #!/bin/bash
  7.  
  8. -CP=$( echo `dirname $0`/../lib/*.jar . | sed 's/ /:/g')
  9. +ORIENTDB_DIR="YOUR_ORIENTDB_INSTALLATION_PATH"
  10. +
  11. +CP=$( echo $ORIENTDB_DIR/lib/*.jar . | sed 's/ /:/g')
  12. #echo $CP
  13.  
  14. # Find Java
  15. diff --git a/bin/orientdb.sh b/bin/orientdb.sh
  16. index e8cc970..be3ec19 100644
  17. --- a/bin/orientdb.sh
  18. +++ b/bin/orientdb.sh
  19. @@ -4,7 +4,6 @@
  20.  
  21. # You have to SET the OrientDB installation directory here
  22. ORIENTDB_DIR="YOUR_ORIENTDB_INSTALLATION_PATH"
  23. -ORIENTDB_USER="USER_YOU_WANT_ORIENTDB_RUN_WITH"
  24.  
  25. usage() {
  26. echo "Usage: `basename $0`: <start|stop|status>"
  27. @@ -20,7 +19,7 @@ start() {
  28. fi
  29. echo "Starting OrientDB server daemon..."
  30. cd "$ORIENTDB_DIR/bin"
  31. - su -c "cd \"$ORIENTDB_DIR/bin\"; /usr/bin/nohup ./server.sh 1>../log/orientdb.log 2>../log/orientdb.err &" - $ORIENTDB_USER
  32. + /usr/bin/nohup ./orientdb-server 1>../log/orientdb.log 2>../log/orientdb.err &
  33. }
  34.  
  35. stop() {
  36. @@ -32,7 +31,7 @@ stop() {
  37. fi
  38. echo "Stopping OrientDB server daemon..."
  39. cd "$ORIENTDB_DIR/bin"
  40. - su -c "cd \"$ORIENTDB_DIR/bin\"; /usr/bin/nohup ./shutdown.sh 1>>../log/orientdb.log 2>>../log/orientdb.err &" - $ORIENTDB_USER
  41. + /usr/bin/nohup ./orientdb-shutdown 1>>../log/orientdb.log 2>>../log/orientdb.err &
  42. }
  43.  
  44. status() {
Add Comment
Please, Sign In to add comment