@@ -, +, @@ zebrasrv --------- -- the zebrasrv and daemon process for zebra indexing didn't restart. -- the processes should have started up again. -- the process ids for the zebrasrv and daemon processes should be different, but the number of processes is the same as before. --- debian/scripts/koha-stop-zebra | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) --- a/debian/scripts/koha-stop-zebra +++ a/debian/scripts/koha-stop-zebra @@ -30,16 +30,15 @@ stop_zebra_instance() { local instancename=$1 + local PIDFILE="/var/run/koha/${instancename}/${instancename}-koha-zebra.pid" echo "Stopping Zebra server for $instancename" - daemon \ - --name="$instancename-koha-zebra" \ - --pidfiles="/var/run/koha/$instancename/" \ - --user="$instancename-koha.$instancename-koha" \ - --stop \ - -- \ - zebrasrv \ - return 0 || \ - return 1 + + if start-stop-daemon --pidfile ${PIDFILE} --stop --quiet --retry=TERM/30/KILL/5; then + return 0; + else + return 1; + fi + } usage() --