El 09/08/16 a las 18:38, Nombre Apellido escribió: > > > El Martes 9 de agosto de 2016 17:46, Scott Owen <so...@edzone.net> escribió: > My script is as yours. > If I run /etc/init.d/koha-common status I have only see koha-indexer but > not zebra, but If I run ps aux I can see a pair of zebra jobs.
I'm thinking: when I start /etc/init.d/koha-common there are a cgroup with 4 jobs, after first log rotation, there are only two, and some times, zebra is not running. Maybe an issue with systemd? > > Into Intranet, in about section I hae not complains about zebra, and > searching is running well. > > REgards > > Still no joy on this. > > Zebra still seems to not reload correctly. > > my /usr/sbin/koha-stop-zebra file looks like the following: > > > > ---------------------------------------------------------------------------------------------------------------- > #!/bin/sh > # > # koha-stop-zebra - Stop Zebra for named Koha instances > # Copyright 2010 Catalyst IT, Ltd > # > # This program is free software: you can redistribute it and/or modify > # it under the terms of the GNU General Public License as published by > # the Free Software Foundation, either version 3 of the License, or > # (at your option) any later version. > # > # This program is distributed in the hope that it will be useful, > # but WITHOUT ANY WARRANTY; without even the implied warranty of > # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > # GNU General Public License for more details. > # > # You should have received a copy of the GNU General Public License > # along with this program. If not, see <http://www.gnu.org/licenses/>. > > set -e > > # include helper functions > if [ -f "/usr/share/koha/bin/koha-functions.sh" ]; then > . "/usr/share/koha/bin/koha-functions.sh" > else > echo "Error: /usr/share/koha/bin/koha-functions.sh not present." 1>&2 > exit 1 > fi > > stop_zebra_instance() > { > local instancename=$1 > > local > PIDFILE="/var/run/koha/${instancename}/${instancename}-koha-zebra.pid" > echo "Stopping Zebra server for $instancename" > > if start-stop-daemon --pidfile ${PIDFILE} --stop --quiet > --retry=TERM/30/KILL/5; then > return 0; > else > return 1; > fi > > } > > usage() > { > local scriptname=$0 > cat <<EOF > Stops Zebra for Koha instances. > > Usage: $scriptname instancename1 instancename2... > > EOF > } > > # Parse command line. > #[ $# -ge 1 ] || ( usage ; die "Missing instance name..." ) > > # Loop through the instance names > for name in "$@" > do > if is_instance $name ; then > if is_zebra_running $name; then > if ! stop_zebra_instance $name; then > warn "Something went wrong stopping Zebra for $name." > fi > else > warn "Zebra already stopped for instance $name." > fi > else > warn "Unknown instance $name." > fi > done > > exit 0 > ------------------------------------------------------------------------------------------------------------------ > > > > > > > > > > On Mon, Aug 8, 2016 at 8:58 AM, Scott Owen <so...@edzone.net > <mailto:so...@edzone.net>> wrote: > >> OK...I tried this, and it seems to have made no difference ? >> >> I'm rebooting the Koha server now, to make sure I have a clean >> start....I'll try letting it sit for a day or two and see how it goes. >> >> (Maybe after I made the file changes the system needs a bounce ?) >> >> -S >> >> >> On Sat, Aug 6, 2016 at 8:03 AM, Mark Tompsett <mtomp...@hotmail.com > <mailto:mtomp...@hotmail.com>> >> wrote: >> >>> Greetings, >>> >>> And now for the off-list, WRONG way of doing it, because you don’t want >>> to limp along. >>> >>> $ sudo cp /usr/sbin/koha-stop-zebra /usr/sbin/koha-stop-zebra.Help >>> MeItMessedUp >>> $ sudo nano /usr/sbin/koha-stop-zebra >>> >>> Now your goal is to make the stop_zebra_instance function look exactly >>> like the patch lines. >>> >>> stop_zebra_instance() >>> { >>> local instancename=$1 >>> >>> local PIDFILE="/var/run/koha/${instancename}/${instancename}-koha- >>> zebra.pid" >>> echo "Stopping Zebra server for $instancename" >>> if start-stop-daemon --pidfile ${PIDFILE} --stop --quiet >>> --retry=TERM/30/KILL/5; then >>> return 0; >>> else >>> return 1; >>> fi >>> } >>> >>> Sorry the message sent too early. Hope this helps. >>> For the record, I’m physically in Toronto, Ontario, Canada, even though >>> the company is in the Philippines. >>> >>> GPML, >>> ------------------------------ >>> [image: Tulong Aklatan logo] <http://www.tulongaklatan.ph > <http://www.tulongaklatan.ph/>> *Mark >>> Tompsett* >>> Co-founder & Chief Technical Officer >>> mark.tomps...@tulongaklatan.ph <mailto:mark.tomps...@tulongaklatan.ph> >>> *Tamayao's Library Hosting Services* >>> 3067 Tolentino St., Pinagkaisahan, Makati City, NCR, Fourth District >>> www.tulongaklatan.ph >>> >> >> > _______________________________________________ > Koha mailing list http://koha-community.org <http://koha-community.org/> > Koha@lists.katipo.co.nz <mailto:Koha@lists.katipo.co.nz> > https://lists.katipo.co.nz/mailman/listinfo/koha > > _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha