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

(-)a/debian/scripts/koha-plack (-8 / +6 lines)
Lines 61-66 $scriptname -h|--help Link Here
61
    --debugger-location   Specify the host:port for your debugger tool (defaults
61
    --debugger-location   Specify the host:port for your debugger tool (defaults
62
                          to localhost:9000)
62
                          to localhost:9000)
63
    --debugger-path       Specify the path for the debugger library
63
    --debugger-path       Specify the path for the debugger library
64
    --development|-dev    Enable development environment
64
    --quiet|-q            Make the script quiet about non existent instance names
65
    --quiet|-q            Make the script quiet about non existent instance names
65
                          (useful for calling from another scripts).
66
                          (useful for calling from another scripts).
66
    --help|-h             Display this help message
67
    --help|-h             Display this help message
Lines 91-109 start_plack() Link Here
91
92
92
    instance_user="${instancename}-koha"
93
    instance_user="${instancename}-koha"
93
94
94
    environment="deployment"
95
    if [ -z "$development_environment" ]; then environment="deployment"; else environment="development"; fi
95
    daemonize="--daemonize"
96
    daemonize="--daemonize"
96
    logging="--access-log /var/log/koha/${instancename}/plack.log \
97
    logging="--access-log /var/log/koha/${instancename}/plack.log \
97
             --error-log /var/log/koha/${instancename}/plack-error.log"
98
             --error-log /var/log/koha/${instancename}/plack-error.log"
98
    max_requests_and_workers="--max-requests ${PLACK_MAX_REQUESTS} --workers ${PLACK_WORKERS}"
99
    max_requests_and_workers="--max-requests ${PLACK_MAX_REQUESTS} --workers ${PLACK_WORKERS}"
99
100
100
    if [ "$DEV_INSTALL" = "1" ]; then
101
        # Maybe we should switch off debug_mode if DEV_INSTALL is not set?
102
        environment="development"
103
    fi
104
105
    if [ "$debug_mode" = "yes" ]; then
101
    if [ "$debug_mode" = "yes" ]; then
106
        environment="development"
102
        # Maybe we should switch off debug_mode if DEV_INSTALL is not set?
107
        daemonize=""
103
        daemonize=""
108
        logging="" # remote debugger takes care
104
        logging="" # remote debugger takes care
109
        max_requests_and_workers="--workers 1"
105
        max_requests_and_workers="--workers 1"
Lines 465-470 while [ $# -gt 0 ]; do Link Here
465
        --debugger-path)
461
        --debugger-path)
466
            debugger_path="$2"
462
            debugger_path="$2"
467
            shift 2 ;;
463
            shift 2 ;;
464
        -dev|--development_environment)
465
            development_environment=1
466
            shift ;;
468
        -*)
467
        -*)
469
            die "Error: invalid option switch ($1)" ;;
468
            die "Error: invalid option switch ($1)" ;;
470
        *)
469
        *)
471
- 

Return to bug 36932