Glassfish como un servicio

nano /etc/init.d/glassfish

Pegar esto asumiento que glassfish esta en /usr/glassfishv3

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
#
# glassfish init script for Linux
# Simplest possible case -- no password file, one default domain
# it would be simple to add such options

GLASSFISH_HOME=${GLASSFISH_HOME:-"/opt/glassfishv3/glassfish"}

case "$1" in
start)
    $GLASSFISH_HOME/bin/asadmin start-domain >/dev/null
    ;;
stop)
    $GLASSFISH_HOME/bin/asadmin stop-domain >/dev/null
    ;;
restart)
    $GLASSFISH_HOME/bin/asadmin restart-domain >/dev/null
    ;;
\*)
    echo "usage: $0 (start|stop|restart|help)"
esac

Y listo!!!

Ahora como lo usamos:

service glassfish start | stop | restart

fuente: https://blogs.oracle.com/foo/entry/how_to_run_glassfish_v3

Esta entrada fue publicada en Glassfish. Guarda el enlace permanente.

38 respuestas a Glassfish como un servicio

  1. Pingback: Allan

  2. Pingback: lonnie

  3. Pingback: wayne

  4. Pingback: Troy

  5. Pingback: tommy

  6. Pingback: Sergio

  7. Pingback: richard

  8. Pingback: albert

  9. Pingback: Ben

  10. Pingback: ralph

  11. Pingback: Clifford

  12. Pingback: Brent

  13. Pingback: michael

  14. Pingback: Enrique

  15. Pingback: Eduardo

  16. Pingback: Donald

  17. Pingback: Kirk

  18. Pingback: glen

  19. Pingback: marvin

  20. Pingback: Bruce

  21. Pingback: Max

  22. Pingback: guy

  23. Pingback: Alberto

  24. Pingback: jimmy

  25. Pingback: Dana

  26. Pingback: milton

  27. Pingback: randall

  28. Pingback: Donald

  29. Pingback: everett

  30. Pingback: wallace

  31. Pingback: donnie

  32. Pingback: eddie

  33. Pingback: Trevor

  34. Pingback: Mathew

  35. Pingback: leonard

  36. Pingback: Alexander

  37. Pingback: Julian

  38. Pingback: Oscar

Deja un comentario