mirror of https://github.com/apache/cloudstack.git
Extend PR#2535 to enable remote debugging for CentOS63 as well (#3128)
This PR is an extension of #2535. By doing this, we also create an easy method to enable remote debug in CentOS63 as well.
This commit is contained in:
parent
8849382f77
commit
df6288f4bc
|
|
@ -88,7 +88,7 @@ start() {
|
|||
|
||||
echo -n "Starting $PROGNAME" "$SHORTNAME"
|
||||
|
||||
if daemon --pidfile $PIDFILE $DAEMON -home "$JAVA_HOME" -cp "$CLASSPATH" -pidfile "$PIDFILE" -user "$USER" \
|
||||
if daemon --pidfile $PIDFILE $DAEMON $JAVA_DEBUG -home "$JAVA_HOME" -cp "$CLASSPATH" -pidfile "$PIDFILE" -user "$USER" \
|
||||
-errfile $LOGDIR/cloudstack-management.err $JAVA_OPTS $CLASS
|
||||
RETVAL=$?
|
||||
then
|
||||
|
|
|
|||
|
|
@ -96,7 +96,7 @@ start() {
|
|||
|
||||
echo -n "Starting $PROGNAME" "$SHORTNAME"
|
||||
|
||||
if daemon --pidfile $PIDFILE $DAEMON -home "$JAVA_HOME" -cp "$CLASSPATH" -pidfile "$PIDFILE" -user "$USER" \
|
||||
if daemon --pidfile $PIDFILE $DAEMON $JAVA_DEBUG -home "$JAVA_HOME" -cp "$CLASSPATH" -pidfile "$PIDFILE" -user "$USER" \
|
||||
-errfile $LOGDIR/cloudstack-usage.err -outfile $LOGDIR/cloudstack-usage.out -Dpid=$$ $CLASS
|
||||
RETVAL=$?
|
||||
then
|
||||
|
|
|
|||
|
|
@ -34,6 +34,12 @@ CLASSPATH="/etc/cloudstack/management:/usr/share/cloudstack-common:/usr/share/cl
|
|||
|
||||
BOOTSTRAP_CLASS=org.apache.cloudstack.ServerDaemon
|
||||
|
||||
#You can uncomment this if you want to enable Java remote debugging.
|
||||
#You can change the parameters at your will. The 'address' field defines the port to be used.
|
||||
#JAVA_DEBUG="-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n"
|
||||
################################################################################################
|
||||
#You can uncomment one of these options if you want to enable Java remote debugging. #
|
||||
#You can change the parameters at your will. The 'address' field defines the port to be used. #
|
||||
################################################################################################
|
||||
# This option here should be used with 'systemmd' based operating systems such as CentOS7, Ubuntu 16, and so on.
|
||||
#JAVA_DEBUG="-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n"
|
||||
|
||||
# On the other hand, this option is used by CentOS6.
|
||||
#JAVA_DEBUG="-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"
|
||||
Loading…
Reference in New Issue