Bug 11081: Port Koha::Contrib::Tamil indexer into Koha code base
[koha.git] / misc / bin / koha-index-daemon
diff --git a/misc/bin/koha-index-daemon b/misc/bin/koha-index-daemon
new file mode 100755 (executable)
index 0000000..5ff19bc
--- /dev/null
@@ -0,0 +1,49 @@
+#!/usr/bin/perl
+
+package Main;
+
+use Modern::Perl;
+use utf8;
+use Koha::Indexer::Daemon;
+use Pod::Usage;
+
+Koha::Indexer::Daemon->new_with_options();
+
+__END__
+
+=pod
+
+=head1 SYNOPSIS
+
+ koha-index-daemon
+
+ koha-index-daemon --timeout 60
+
+ koha-index-daemon --timeout 60 --directory /home/mylib/tmp
+
+=head1 DESCRIPTION
+
+Examine periodicaly zebraqueue table from a Koha instance and index
+bilbio/authority records.
+
+=head1 OPTIONS
+
+=over
+
+=item --timeout
+
+Specify the daemon timeout in seconds.
+
+=item --directory
+
+Directory where to write record exported from Koha DB before sending them to
+Zebra. Subdirectories are created.
+
+=back
+
+=head1 SEE ALSO
+
+=for :list
+* L<koha-index>
+
+=cut