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

(-)a/debian/docs/koha-plack.xml (+8 lines)
Lines 31-36 Link Here
31
        <option>--reload</option>|
31
        <option>--reload</option>|
32
        <option>--enable</option>|
32
        <option>--enable</option>|
33
        <option>--disable</option>|
33
        <option>--disable</option>|
34
        <option>--status</option>|
34
        <option>--help</option>|<option>-h</option>
35
        <option>--help</option>|<option>-h</option>
35
        |<option>--quiet</option>|<option>-q</option>
36
        |<option>--quiet</option>|<option>-q</option>
36
      </arg>
37
      </arg>
Lines 84-89 Link Here
84
      </listitem>
85
      </listitem>
85
    </varlistentry>
86
    </varlistentry>
86
87
88
    <varlistentry>
89
      <term><option>--status</option></term>
90
      <listitem>
91
        <para>Show the status of Plack for the specified instances.</para>
92
      </listitem>
93
    </varlistentry>
94
87
    <varlistentry>
95
    <varlistentry>
88
      <term><option>--quiet|-q</option></term>
96
      <term><option>--quiet|-q</option></term>
89
      <listitem>
97
      <listitem>
(-)a/debian/scripts/koha-plack (-2 / +21 lines)
Lines 43-49 $scriptname Link Here
43
This script lets you manage the plack daemons for your Koha instances.
43
This script lets you manage the plack daemons for your Koha instances.
44
44
45
Usage:
45
Usage:
46
$scriptname --start|--stop|--restart|--reload [--quiet|-q] instancename1 [instancename2...]
46
$scriptname --start|--stop|--restart|--reload|--status [--quiet|-q] instancename1 [instancename2...]
47
$scriptname --enable|--disable instancename1 [instancename2]
47
$scriptname --enable|--disable instancename1 [instancename2]
48
$scriptname -h|--help
48
$scriptname -h|--help
49
49
Lines 55-60 $scriptname -h|--help Link Here
55
                          requests before restarting them
55
                          requests before restarting them
56
    --enable              Enable plack for the specified instances
56
    --enable              Enable plack for the specified instances
57
    --disable             Disable plack for the specified instances
57
    --disable             Disable plack for the specified instances
58
    --status              Show the status of Plack for the specified instances
58
    --debugger            Enable running Plack in debug mode
59
    --debugger            Enable running Plack in debug mode
59
    --debugger-key        Specify the key the IDE is expecting
60
    --debugger-key        Specify the key the IDE is expecting
60
    --debugger-location   Specify the host:port for your debugger tool (defaults
61
    --debugger-location   Specify the host:port for your debugger tool (defaults
Lines 192-197 reload_plack() Link Here
192
    fi
193
    fi
193
}
194
}
194
195
196
plack_status()
197
{
198
    local name=$1
199
200
    if is_plack_running ${name}; then
201
        log_daemon_msg "Plack running for ${name}"
202
        log_end_msg 0
203
    else
204
        log_daemon_msg "Plack not running for ${name}"
205
        log_end_msg 3
206
    fi
207
}
208
195
enable_plack()
209
enable_plack()
196
{
210
{
197
    local instancename=$1
211
    local instancename=$1
Lines 392-397 _do_instance() { Link Here
392
        "disable")
406
        "disable")
393
            disable_plack $name
407
            disable_plack $name
394
            ;;
408
            ;;
409
        "status")
410
            plack_status $name
411
            ;;
395
        *)
412
        *)
396
            usage
413
            usage
397
            ;;
414
            ;;
Lines 433-438 while [ $# -gt 0 ]; do Link Here
433
        --disable)
450
        --disable)
434
            set_action "disable"
451
            set_action "disable"
435
            shift ;;
452
            shift ;;
453
        --status)
454
            set_action "status"
455
            shift ;;
436
        --debugger)
456
        --debugger)
437
            debug_mode="yes"
457
            debug_mode="yes"
438
            shift ;;
458
            shift ;;
439
- 

Return to bug 35954