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 |
- |
|
|