View | Details | Raw Unified | Return to bug 39740
Collapse All | Expand All

(-)a/debian/scripts/koha-plack (-8 / +7 lines)
Lines 102-109 start_plack() Link Here
102
             --error-log /var/log/koha/${instancename}/plack-error.log"
102
             --error-log /var/log/koha/${instancename}/plack-error.log"
103
    max_requests_and_workers="--max-requests ${PLACK_MAX_REQUESTS} --workers ${PLACK_WORKERS}"
103
    max_requests_and_workers="--max-requests ${PLACK_MAX_REQUESTS} --workers ${PLACK_WORKERS}"
104
104
105
    # Enable debug mode in development
105
    # Enable debugger?
106
    if [ "$debug_mode" = "yes" ] && [ "$environment" = "development" ]; then
106
    if [ "$debugger" = "yes" ] && [ "$environment" = "development" ]; then
107
        daemonize=""
107
        daemonize=""
108
        logging="" # remote debugger takes care
108
        logging="" # remote debugger takes care
109
        max_requests_and_workers="--workers 1"
109
        max_requests_and_workers="--workers 1"
Lines 373-382 _do_instance() { Link Here
373
    if [ "$KOHA_BINDIR" = "misc" ]; then GIT_INSTALL=1; else GIT_INSTALL=""; fi
373
    if [ "$KOHA_BINDIR" = "misc" ]; then GIT_INSTALL=1; else GIT_INSTALL=""; fi
374
    export PERL5LIB KOHA_HOME GIT_INSTALL
374
    export PERL5LIB KOHA_HOME GIT_INSTALL
375
375
376
    # If debug mode is enabled, add the debugger lib path
376
    # If debugger is enabled, add the debugger lib path to PERL5LIB if appropriate
377
    # to PERL5LIB if appropriate
377
    # FIXME: many of these variables should be set in a higher scope
378
    #FIXME: many of these variables should be set in a higher scope
378
    if [ "$debugger" = "yes" ]; then
379
    if [ "$debug_mode" = "yes" ]; then
380
        if [ "$debugger_path" != "" ]; then
379
        if [ "$debugger_path" != "" ]; then
381
            PERL5LIB="${debugger_path}":$PERL5LIB
380
            PERL5LIB="${debugger_path}":$PERL5LIB
382
        fi
381
        fi
Lines 418-424 _do_instance() { Link Here
418
STARMAN=$(which starman)
417
STARMAN=$(which starman)
419
op=""
418
op=""
420
quiet="no"
419
quiet="no"
421
debug_mode="no"
420
debugger="no"
422
debugger_key=""
421
debugger_key=""
423
debugger_location="localhost:9000"
422
debugger_location="localhost:9000"
424
debugger_path=""
423
debugger_path=""
Lines 454-460 while [ $# -gt 0 ]; do Link Here
454
            set_action "status"
453
            set_action "status"
455
            shift ;;
454
            shift ;;
456
        --debugger)
455
        --debugger)
457
            debug_mode="yes"
456
            debugger="yes"
458
            shift ;;
457
            shift ;;
459
        --debugger-key)
458
        --debugger-key)
460
            debugger_key="$2"
459
            debugger_key="$2"
(-)a/debian/scripts/koha-z3950-responder (-10 / +7 lines)
Lines 86-98 start_z3950() Link Here
86
    logging="-l /var/log/koha/${instancename}/z3950.log"
86
    logging="-l /var/log/koha/${instancename}/z3950.log"
87
87
88
    Z3950RESPONDER="/usr/bin/perl $KOHA_HOME/$KOHA_BINDIR/z3950_responder.pl"
88
    Z3950RESPONDER="/usr/bin/perl $KOHA_HOME/$KOHA_BINDIR/z3950_responder.pl"
89
    if [ "$debug_mode" = "yes" ] && is_debug_mode $instancename; then
89
    if [ "$debugger" = "yes" ] && is_debug_mode $instancename; then
90
        environment="development"
91
        daemonize=""
90
        daemonize=""
92
        logging="" # remote debugger takes care
91
        logging="" # remote debugger takes care
93
        Z3950RESPONDER="/usr/bin/perl -d $KOHA_HOME/$KOHA_BINDIR/z3950_responder.pl"
92
        Z3950RESPONDER="/usr/bin/perl -d $KOHA_HOME/$KOHA_BINDIR/z3950_responder.pl"
94
    elif [ "$debug_mode" = "yes" ]; then
93
    elif [ "$debugger" = "yes" ]; then
95
        warn "Not a test system, disabling debug mode"
94
        warn "Not a test system, disabling debugger"
96
    fi
95
    fi
97
96
98
    Z3950OPTS="-c ${CONFIGDIR} \
97
    Z3950OPTS="-c ${CONFIGDIR} \
Lines 238-244 set_action() Link Here
238
237
239
op=""
238
op=""
240
quiet="no"
239
quiet="no"
241
debug_mode="no"
240
debugger="no"
242
debugger_key=""
241
debugger_key=""
243
debugger_location="localhost:9000"
242
debugger_location="localhost:9000"
244
debugger_path=""
243
debugger_path=""
Lines 268-274 while [ $# -gt 0 ]; do Link Here
268
            set_action "disable"
267
            set_action "disable"
269
            shift ;;
268
            shift ;;
270
        --debugger)
269
        --debugger)
271
            debug_mode="yes"
270
            debugger="yes"
272
            shift ;;
271
            shift ;;
273
        --debugger-key)
272
        --debugger-key)
274
            debugger_key="$2"
273
            debugger_key="$2"
Lines 296-304 if [ $# -gt 0 ]; then Link Here
296
295
297
            adjust_paths_git_install $name
296
            adjust_paths_git_install $name
298
            PERL5LIB=$PERL5LIB:$KOHA_HOME/installer:$KOHA_HOME/lib/installer
297
            PERL5LIB=$PERL5LIB:$KOHA_HOME/installer:$KOHA_HOME/lib/installer
299
            # If debug mode is enabled, add the debugger lib path
298
            # If debugger is enabled, add the debugger lib path to PERL5LIB if appropriate
300
            # to PERL5LIB if appropriate
299
            if [ "$debugger" = "yes" ]; then
301
            if [ "$debug_mode" = "yes" ] && is_debug_mode $name; then
302
                if [ "$debugger_path" != "" ]; then
300
                if [ "$debugger_path" != "" ]; then
303
                    PERL5LIB="${debugger_path}":$PERL5LIB
301
                    PERL5LIB="${debugger_path}":$PERL5LIB
304
                fi
302
                fi
305
- 

Return to bug 39740