5 # Script to start Koha background Z39.50 search daemon
7 # Part of the Koha Library Mgmt System - www.koha.org
8 # Licensed under the GPL
10 #----------------------------
11 # Call this script during system startup, such as from rc.local
14 # Needs SysV-type start/stop options
16 #----------------------------
17 # User ID to run the daemon as. Don't use "root"
20 KohaZ3950Dir=/usr/local/www/koha/htdocs/cgi-bin/koha/acqui.simple
23 #----------------------------
24 if [ ! -d $KohaZ3950Dir ]
26 echo ERROR: Cannot find Koha directory $KohaZ3950Dir
30 KohaZ3950Shell=$KohaZ3950Dir/z3950-daemon-shell.sh
32 if [ ! -x $KohaZ3950Shell ]
34 echo ERROR: Cannot find Koha Z39.50 daemon launcher $KohaZ3950Shell
38 su -s /bin/sh -c $KohaZ3950Shell - $RunAsUser &
44 # Revision 1.1 2002/11/22 10:15:22 tipaul
45 # moving z3950 related scripts to specific dir
47 # Revision 1.3 2002/07/02 22:08:50 tonnesen
48 # merging changes from rel-1-2
50 # Revision 1.1.2.3 2002/06/26 19:56:57 tonnesen
51 # Bug fix. Single quotes were causing $KohaZ3950Shell variable to not get
54 # Revision 1.1.2.2 2002/06/26 16:25:51 amillar
55 # Make directory variable name more explanatory