Lines 110-122
start_z3950()
Link Here
|
110 |
if ! is_z3950_running ${instancename}; then |
110 |
if ! is_z3950_running ${instancename}; then |
111 |
export KOHA_CONF="/etc/koha/sites/${instancename}/koha-conf.xml" |
111 |
export KOHA_CONF="/etc/koha/sites/${instancename}/koha-conf.xml" |
112 |
|
112 |
|
|
|
113 |
Z3950_ADDITIONAL_OPTS="$( xmlstarlet sel -t -v 'yazgfs/config/z3950_responder_options' $KOHA_CONF )" |
114 |
|
113 |
log_daemon_msg "Starting Z39.50/SRU daemon for ${instancename}" |
115 |
log_daemon_msg "Starting Z39.50/SRU daemon for ${instancename}" |
114 |
|
116 |
|
115 |
# Change to the instance's user dir |
117 |
# Change to the instance's user dir |
116 |
current_dir=$(pwd) |
118 |
current_dir=$(pwd) |
117 |
eval cd ~$instance_user |
119 |
eval cd ~$instance_user |
118 |
|
120 |
|
119 |
if ${Z3950RESPONDER} ${Z3950OPTS}; then |
121 |
if ${Z3950RESPONDER} ${Z3950_ADDITIONAL_OPTS} ${Z3950OPTS}; then |
120 |
log_end_msg 0 |
122 |
log_end_msg 0 |
121 |
else |
123 |
else |
122 |
log_end_msg 1 |
124 |
log_end_msg 1 |