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
17 # Parse /etc/koha.conf
18 for line in `cat /etc/koha.conf` ; do
22 if [ $1 = 'intranetdir' ] ; then
25 if [ $1 = 'httpduser' ] ; then
28 if [ $1 = 'kohalogdir' ] ; then
36 #----------------------------
37 # User ID to run the daemon as. Don't use "root"
40 KohaZ3950Dir=$intranetdir/scripts/z3950daemon
43 #----------------------------
44 if [ ! -d $KohaZ3950Dir ]
46 echo ERROR: Cannot find Koha directory $KohaZ3950Dir
50 KohaZ3950Shell=$KohaZ3950Dir/z3950-daemon-shell.sh
52 if [ ! -x $KohaZ3950Shell ]
54 echo ERROR: Cannot find Koha Z39.50 daemon launcher $KohaZ3950Shell
58 su -s /bin/sh -c $KohaZ3950Shell - $RunAsUser &
64 # Revision 1.1.2.4 2002/07/25 17:34:02 tonnesen
65 # shell scripts now parse the config file to get working directories and apache
68 # Revision 1.1.2.3 2002/06/26 19:56:57 tonnesen
69 # Bug fix. Single quotes were causing $KohaZ3950Shell variable to not get
72 # Revision 1.1.2.2 2002/06/26 16:25:51 amillar
73 # Make directory variable name more explanatory