Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2014
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. update-rc.d myscript defaults 99 01
  2.  
  3. #!/bin/sh
  4. ### BEGIN INIT INFO
  5. # Provides: myscript
  6. # Required-Start: $remote_fs $syslog
  7. # Required-Stop: $remote_fs $syslog
  8. # Default-Start: 2 3 4 5
  9. # Default-Stop: 0 1 6
  10. # Short-Description: Start daemon at boot time
  11. # Description: Enable service provided by daemon.
  12. ### END INIT INFO
  13.  
  14. case "$1" in
  15. start)
  16.  
  17. service tomcat6 restart
  18. /usr/local/lib/geoserver-2.5/bin/startup.sh
  19.  
  20. ;;
  21. esac
  22.  
  23. quit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement