diff --git a/debian/scripts/koha-plack b/debian/scripts/koha-plack index 661b490cad..7c112e906c 100755 --- a/debian/scripts/koha-plack +++ b/debian/scripts/koha-plack @@ -102,8 +102,8 @@ start_plack() --error-log /var/log/koha/${instancename}/plack-error.log" max_requests_and_workers="--max-requests ${PLACK_MAX_REQUESTS} --workers ${PLACK_WORKERS}" - # Enable debug mode in development - if [ "$debug_mode" = "yes" ] && [ "$environment" = "development" ]; then + # Enable debugger? + if [ "$debugger" = "yes" ] && [ "$environment" = "development" ]; then daemonize="" logging="" # remote debugger takes care max_requests_and_workers="--workers 1" @@ -373,10 +373,9 @@ _do_instance() { if [ "$KOHA_BINDIR" = "misc" ]; then GIT_INSTALL=1; else GIT_INSTALL=""; fi export PERL5LIB KOHA_HOME GIT_INSTALL - # If debug mode is enabled, add the debugger lib path - # to PERL5LIB if appropriate - #FIXME: many of these variables should be set in a higher scope - if [ "$debug_mode" = "yes" ]; then + # If debugger is enabled, add the debugger lib path to PERL5LIB if appropriate + # FIXME: many of these variables should be set in a higher scope + if [ "$debugger" = "yes" ]; then if [ "$debugger_path" != "" ]; then PERL5LIB="${debugger_path}":$PERL5LIB fi @@ -418,7 +417,7 @@ _do_instance() { STARMAN=$(which starman) op="" quiet="no" -debug_mode="no" +debugger="no" debugger_key="" debugger_location="localhost:9000" debugger_path="" @@ -454,7 +453,7 @@ while [ $# -gt 0 ]; do set_action "status" shift ;; --debugger) - debug_mode="yes" + debugger="yes" shift ;; --debugger-key) debugger_key="$2" diff --git a/debian/scripts/koha-z3950-responder b/debian/scripts/koha-z3950-responder index 97fd6b88fa..9c0f5894da 100755 --- a/debian/scripts/koha-z3950-responder +++ b/debian/scripts/koha-z3950-responder @@ -86,13 +86,12 @@ start_z3950() logging="-l /var/log/koha/${instancename}/z3950.log" Z3950RESPONDER="/usr/bin/perl $KOHA_HOME/$KOHA_BINDIR/z3950_responder.pl" - if [ "$debug_mode" = "yes" ] && is_debug_mode $instancename; then - environment="development" + if [ "$debugger" = "yes" ] && is_debug_mode $instancename; then daemonize="" logging="" # remote debugger takes care Z3950RESPONDER="/usr/bin/perl -d $KOHA_HOME/$KOHA_BINDIR/z3950_responder.pl" - elif [ "$debug_mode" = "yes" ]; then - warn "Not a test system, disabling debug mode" + elif [ "$debugger" = "yes" ]; then + warn "Not a test system, disabling debugger" fi Z3950OPTS="-c ${CONFIGDIR} \ @@ -238,7 +237,7 @@ set_action() op="" quiet="no" -debug_mode="no" +debugger="no" debugger_key="" debugger_location="localhost:9000" debugger_path="" @@ -268,7 +267,7 @@ while [ $# -gt 0 ]; do set_action "disable" shift ;; --debugger) - debug_mode="yes" + debugger="yes" shift ;; --debugger-key) debugger_key="$2" @@ -296,9 +295,8 @@ if [ $# -gt 0 ]; then adjust_paths_git_install $name PERL5LIB=$PERL5LIB:$KOHA_HOME/installer:$KOHA_HOME/lib/installer - # If debug mode is enabled, add the debugger lib path - # to PERL5LIB if appropriate - if [ "$debug_mode" = "yes" ] && is_debug_mode $name; then + # If debugger is enabled, add the debugger lib path to PERL5LIB if appropriate + if [ "$debugger" = "yes" ]; then if [ "$debugger_path" != "" ]; then PERL5LIB="${debugger_path}":$PERL5LIB fi