Bug 15471 [QA Followup] - Revert use of raw method which is no longer used do to...
[koha.git] / misc / bin / koha-index-daemon
1 #!/usr/bin/perl
2 # This file is part of Koha.
3 #
4 # Copyright (C) 2013 Tamil s.a.r.l.
5 #
6 # Koha is free software; you can redistribute it and/or modify it
7 # under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3 of the License, or
9 # (at your option) any later version.
10 #
11 # Koha is distributed in the hope that it will be useful, but
12 # WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with Koha; if not, see <http://www.gnu.org/licenses>.
18
19 package Main;
20
21 use Modern::Perl;
22 use utf8;
23 use Koha::Indexer::Daemon;
24 use Pod::Usage;
25
26 Koha::Indexer::Daemon->new_with_options();
27
28 __END__
29
30 =pod
31
32 =head1 SYNOPSIS
33
34  koha-index-daemon
35
36  koha-index-daemon --timeout 60
37
38  koha-index-daemon --timeout 60 --directory /home/mylib/tmp
39
40 =head1 DESCRIPTION
41
42 Examine periodicaly zebraqueue table from a Koha instance and index
43 bilbio/authority records.
44
45 =head1 OPTIONS
46
47 =over
48
49 =item --timeout
50
51 Specify the daemon timeout in seconds.
52
53 =item --directory
54
55 Directory where to write record exported from Koha DB before sending them to
56 Zebra. Subdirectories are created.
57
58 =back
59
60 =head1 SEE ALSO
61
62 =for :list
63 * L<koha-index>
64
65 =cut