diff options
author | Endi Sukma Dewata <edewata@redhat.com> | 2012-11-13 23:34:08 -0500 |
---|---|---|
committer | Endi Sukma Dewata <edewata@redhat.com> | 2012-11-13 23:36:27 -0500 |
commit | 8817f4312e62f939caf5ea5c34b9720a7625ede2 (patch) | |
tree | 0b9a1d11d9251568a7389046bd70508fab383cf7 /base/deploy/src/scriptlets/pkiconfig.py | |
parent | e1e7386164f1df2eb13ce4ce2da420534036e55c (diff) | |
download | pki-8817f4312e62f939caf5ea5c34b9720a7625ede2.tar.gz pki-8817f4312e62f939caf5ea5c34b9720a7625ede2.tar.xz pki-8817f4312e62f939caf5ea5c34b9720a7625ede2.zip |
Fixed pkiconfig.py.
Diffstat (limited to 'base/deploy/src/scriptlets/pkiconfig.py')
-rw-r--r-- | base/deploy/src/scriptlets/pkiconfig.py | 76 |
1 files changed, 38 insertions, 38 deletions
diff --git a/base/deploy/src/scriptlets/pkiconfig.py b/base/deploy/src/scriptlets/pkiconfig.py index fe6c087a0..d1cc35347 100644 --- a/base/deploy/src/scriptlets/pkiconfig.py +++ b/base/deploy/src/scriptlets/pkiconfig.py @@ -115,6 +115,44 @@ class PKIConfig: PKI_CERTDB_SELINUX_CONTEXT = "pki_tomcat_cert_t" PKI_PORT_SELINUX_CONTEXT = "http_port_t" + # NOTE: To utilize the 'preparations_for_an_external_java_debugger(master)' + # and 'wait_to_attach_an_external_java_debugger(master)' functions, + # change 'pki_enable_java_debugger=False' to + # 'pki_enable_java_debugger=True' in the appropriate + # 'pkideployment.cfg' configuration file. + def prepare_for_an_external_java_debugger(instance): + print + print PKI_DEPLOYMENT_INTERRUPT_BANNER + print + print "The following 'JAVA_OPTS' MUST be enabled (uncommented) in" + print "'%s':" % instance + print + print " JAVA_OPTS=\"-Xdebug -Xrunjdwp:transport=dt_socket,\"" + print " \"address=8000,server=y,suspend\"" + print + raw_input("Enable external java debugger 'JAVA_OPTS' "\ + "and press return to continue . . . ") + print + print PKI_DEPLOYMENT_INTERRUPT_BANNER + print + return + + def wait_to_attach_an_external_java_debugger(): + print + print PKI_DEPLOYMENT_INTERRUPT_BANNER + print + print "Attach the java debugger to this process on the port specified by" + print "the 'address' selected by 'JAVA_OPTS' (e. g. - port 8000) and" + print "set any desired breakpoints" + print + raw_input("Please attach an external java debugger "\ + "and press return to continue . . . ") + print + print PKI_DEPLOYMENT_INTERRUPT_BANNER + print + return + + # PKI Deployment Global Variables pki_install_time = None pki_timestamp = None @@ -140,44 +178,6 @@ pki_update_flag = False pki_root_prefix = None -# NOTE: To utilize the 'preparations_for_an_external_java_debugger(master)' -# and 'wait_to_attach_an_external_java_debugger(master)' functions, -# change 'pki_enable_java_debugger=False' to -# 'pki_enable_java_debugger=True' in the appropriate -# 'pkideployment.cfg' configuration file. -def prepare_for_an_external_java_debugger(instance): - print - print PKI_DEPLOYMENT_INTERRUPT_BANNER - print - print "The following 'JAVA_OPTS' MUST be enabled (uncommented) in" - print "'%s':" % instance - print - print " JAVA_OPTS=\"-Xdebug -Xrunjdwp:transport=dt_socket,\"" - print " \"address=8000,server=y,suspend\"" - print - raw_input("Enable external java debugger 'JAVA_OPTS' "\ - "and press return to continue . . . ") - print - print PKI_DEPLOYMENT_INTERRUPT_BANNER - print - return - -def wait_to_attach_an_external_java_debugger(): - print - print PKI_DEPLOYMENT_INTERRUPT_BANNER - print - print "Attach the java debugger to this process on the port specified by" - print "the 'address' selected by 'JAVA_OPTS' (e. g. - port 8000) and" - print "set any desired breakpoints" - print - raw_input("Please attach an external java debugger "\ - "and press return to continue . . . ") - print - print PKI_DEPLOYMENT_INTERRUPT_BANNER - print - return - - # PKI Deployment Global Dictionaries pki_sensitive_dict = None pki_common_dict = None |