3 # Script to start Koha background Z39.50 search daemon
5 # Part of the Koha Library Mgmt System - www.koha.org
6 # Licensed under the GPL
8 #----------------------------
9 # Do NOT run this script directly from system startup-
10 # Call z3950-daemon-launch.sh instead
12 #----------------------------
14 KohaDir=/usr/local/www/koha/htdocs/cgi-bin/koha/acqui.simple
15 KohaModuleDir=/usr/local/koha/modules
18 #----------------------------
19 LOGFILE=$LogDir/z3950-daemon-`date +%Y%m%d-%H%M`.log
24 echo ERROR: Cannot write to log file $LOGFILE
28 KohaZ3950Script=$KohaDir/processz3950queue
29 if [ ! -x $KohaZ3950Script ]
31 echo ERROR: Cannot find Koha Z39.50 daemon script $KohaZ3950Script
35 PERL5LIB=$KohaModuleDir
38 exec $KohaDir/processz3950queue >>$LOGFILE 2>&1