Lines 237-242
EOF
Link Here
|
237 |
fi |
237 |
fi |
238 |
done |
238 |
done |
239 |
|
239 |
|
|
|
240 |
for site in $(koha-list); do |
241 |
log4perl_config="/etc/koha/sites/$site/log4perl.conf" |
242 |
if ! log4perl_component $log4perl_config "worker"; then |
243 |
cat <<EOF >> $log4perl_config |
244 |
log4perl.logger.worker = WARN, WORKER |
245 |
log4perl.appender.WORKER=Log::Log4perl::Appender::Screen |
246 |
log4perl.appender.WORKER.stderr=1 |
247 |
log4perl.appender.WORKER.mode=append |
248 |
log4perl.appender.WORKER.layout=PatternLayout |
249 |
log4perl.appender.WORKER.layout.ConversionPattern=[%d] [%p] %m %l%n |
250 |
log4perl.appender.WORKER.utf8=1 |
251 |
|
252 |
EOF |
253 |
fi |
254 |
done |
255 |
|
240 |
for site in $(koha-list); do |
256 |
for site in $(koha-list); do |
241 |
kohaconfig="/etc/koha/sites/$site/koha-conf.xml" |
257 |
kohaconfig="/etc/koha/sites/$site/koha-conf.xml" |
242 |
logdir="$( xmlstarlet sel -t -v 'yazgfs/config/logdir' $kohaconfig )" |
258 |
logdir="$( xmlstarlet sel -t -v 'yazgfs/config/logdir' $kohaconfig )" |
Lines 267-286
service rabbitmq-server restart
Link Here
|
267 |
update-rc.d koha-common disable |
283 |
update-rc.d koha-common disable |
268 |
update-rc.d koha-common enable |
284 |
update-rc.d koha-common enable |
269 |
|
285 |
|
270 |
for site in $(koha-list); do |
|
|
271 |
log4perl_config="/etc/koha/sites/$site/log4perl.conf" |
272 |
if ! log4perl_component $log4perl_config "worker"; then |
273 |
cat <<EOF >> $log4perl_config |
274 |
log4perl.logger.worker = WARN, WORKER |
275 |
log4perl.appender.WORKER=Log::Log4perl::Appender::Screen |
276 |
log4perl.appender.WORKER.stderr=1 |
277 |
log4perl.appender.WORKER.mode=append |
278 |
log4perl.appender.WORKER.layout=PatternLayout |
279 |
log4perl.appender.WORKER.layout.ConversionPattern=[%d] [%p] %m %l%n |
280 |
log4perl.appender.WORKER.utf8=1 |
281 |
|
282 |
EOF |
283 |
fi |
284 |
done |
285 |
|
286 |
exit 0 |
286 |
exit 0 |