Advertisement
Guest User

Untitled

a guest
Dec 22nd, 2014
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. #!/bin/sh -e
  2. # Confluence startup script
  3. #chkconfig: 2345 80 05
  4. #description: Confluence
  5.  
  6. # Define some variables
  7. # Name of app ( JIRA, Confluence, etc )
  8. APP=confluence
  9. # Name of the user to run as
  10. USER=root
  11. # Location of application's bin directory
  12. #CATALINA_HOME=/usr/local/confluence/current
  13. CATALINA_HOME=/usr/local/atlassian-confluence
  14. # Location of Java JDK
  15. #export JAVA_HOME=/usr/lib/jvm/java-6-sun
  16. export JAVA_HOME=/usr/jdk1.6.0_29
  17.  
  18. case "$1" in
  19. # Start command
  20. start)
  21. echo "Starting $APP"
  22. $CATALINA_HOME/bin/startup.sh &> /dev/null
  23. ;;
  24. # Stop command
  25. stop)
  26. echo "Stopping $APP"
  27. $CATALINA_HOME/bin/shutdown.sh &> /dev/null
  28. echo "$APP stopped successfully"
  29. ;;
  30. # Restart command
  31. restart)
  32. $0 stop
  33. sleep 5
  34. $0 start
  35. ;;
  36. *)
  37. echo "Usage: /etc/init.d/$APP {start|restart|stop}"
  38. exit 1
  39. ;;
  40. esac
  41.  
  42. exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement