|
Lines 115-120
if ($noshadow) {
Link Here
|
| 115 |
$noshadow = ' -n '; |
115 |
$noshadow = ' -n '; |
| 116 |
} |
116 |
} |
| 117 |
|
117 |
|
|
|
118 |
if ($daemon_mode) { |
| 119 |
# incompatible flags handled above: help, reset, and do_not_clear_zebraqueue |
| 120 |
if ($skip_export or $keep_export or $skip_index or |
| 121 |
$where or $length or $offset) { |
| 122 |
my $msg = "Cannot specify -s, -k, -I, -where, -length, or -offset with -daemon.\n"; |
| 123 |
$msg .= "Please do '$0 --help' to see usage.\n"; |
| 124 |
die $msg; |
| 125 |
} |
| 126 |
$authorities = 1; |
| 127 |
$biblios = 1; |
| 128 |
$process_zebraqueue = 1; |
| 129 |
} |
| 130 |
|
| 118 |
# -v is for verbose, which seems backwards here because of how logging is set |
131 |
# -v is for verbose, which seems backwards here because of how logging is set |
| 119 |
# on the CLI of zebraidx. It works this way. The default is to not log much |
132 |
# on the CLI of zebraidx. It works this way. The default is to not log much |
| 120 |
if ($verbose_logging >= 2) { |
133 |
if ($verbose_logging >= 2) { |
|
Lines 207-212
sub do_one_pass {
Link Here
|
| 207 |
} |
220 |
} |
| 208 |
|
221 |
|
| 209 |
# Check the zebra update queue and return true if there are records to process |
222 |
# Check the zebra update queue and return true if there are records to process |
|
|
223 |
# This routine will handle each of -ab, -a, or -b, but in practice we force |
| 224 |
# -ab when in daemon mode. |
| 210 |
sub zebraqueue_not_empty { |
225 |
sub zebraqueue_not_empty { |
| 211 |
my $where_str; |
226 |
my $where_str; |
| 212 |
|
227 |
|
|
Lines 736-741
Parameters:
Link Here
|
| 736 |
the zebra search index with low system overhead. |
751 |
the zebra search index with low system overhead. |
| 737 |
Use -sleep to control the checking interval. |
752 |
Use -sleep to control the checking interval. |
| 738 |
|
753 |
|
|
|
754 |
Daemon mode implies -z, -a, -b. The program will |
| 755 |
refuse to start if options are present that do not |
| 756 |
make sense while running as an incremental update |
| 757 |
daemon (e.g. -r or -offset). |
| 758 |
|
| 739 |
-sleep 10 Seconds to sleep between checks of the zebraqueue |
759 |
-sleep 10 Seconds to sleep between checks of the zebraqueue |
| 740 |
table in daemon mode. The default is 5 seconds. |
760 |
table in daemon mode. The default is 5 seconds. |
| 741 |
|
761 |
|
| 742 |
- |
|
|