Re: [Koha] koha-index-daemon

2012-09-24 Thread sunil sharma
Dear Friend,

 /etc/init.d/koha-index-daemon: line 67: log_daemon_msg: command not found
  /etc/init.d/koha-index-daemon: line 68: daemon: command not found
  /etc/init.d/koha-index-daemon: line 71: log_end_msg: command not found

 Both log_daemon_msg and log_end_msg commands belong to LSB-related
 packages. On Debian/Ubuntu that would be lsb-core. On RedHat derivates
 it might be redhat-lsb. As for the daemon command, I can't tell.


I checked out the redhat-lsb package on my centos 6.2 machine, the package
is already installed and the newest.
My 2nd error of line 68: daemon: command not found is resolved after
installing the daemon-tool as told by Mr.Bernardo.

But the two errors of line 67  71 remains as it is, i.e.

 /etc/init.d/koha-index-daemon: line 67: log_daemon_msg: command not found
 /etc/init.d/koha-index-daemon: line 71: log_end_msg: command not found

Can You or anybody else please help me in this regard to solve out my
problem.


*Thanx in Advance*,

*Sunil*
___
Koha mailing list  http://koha-community.org
Koha@lists.katipo.co.nz
http://lists.katipo.co.nz/mailman/listinfo/koha


Re: [Koha] koha-index-daemon

2012-09-24 Thread Bernardo Gonzalez Kriegel

 But the two errors of line 67  71 remains as it is, i.e.

  /etc/init.d/koha-index-daemon: line 67: log_daemon_msg: command not found
  /etc/init.d/koha-index-daemon: line 71: log_end_msg: command not found

 The system expects that this two functions were defined on
/lib/lsb/init-functions.
In my centos system that archive corresponds to the package redhat-lsb.
Have you that package installed?

If you have the file, but not the functions then you can add similar ones
as suggested at (
http://www.linuxquestions.org/questions/linux-software-2/using-debian-start-stop-daemon-on-centos-680223/
)

Regards,
Bernardo
___
Koha mailing list  http://koha-community.org
Koha@lists.katipo.co.nz
http://lists.katipo.co.nz/mailman/listinfo/koha


Re: [Koha] koha-index-daemon

2012-09-21 Thread Tomas Cohen Arazi
On Fri, Sep 21, 2012 at 6:12 AM, sunil sharma koha.sunil...@gmail.com wrote:
 Dear All,

 I am facing an error while executing my koha-index-daemon file using *
 koha-index-daemon-ctl.sh*.

I'm glad to rad you're trying that script.

 shows error:-

 /etc/init.d/koha-index-daemon: line 67: log_daemon_msg: command not found
 /etc/init.d/koha-index-daemon: line 68: daemon: command not found
 /etc/init.d/koha-index-daemon: line 71: log_end_msg: command not found

Both log_daemon_msg and log_end_msg commands belong to LSB-related
packages. On Debian/Ubuntu that would be lsb-core. On RedHat derivates
it might be redhat-lsb. As for the daemon command, I can't tell.

Regards
To+
___
Koha mailing list  http://koha-community.org
Koha@lists.katipo.co.nz
http://lists.katipo.co.nz/mailman/listinfo/koha


Re: [Koha] koha-index-daemon

2012-09-21 Thread sunil sharma
Dear Friend,

Thanx for your quick reply, By installing 'daemon' program, the error of
line 68 is removed but still the error in remianing 2 linesis as it is.
i.e.

$ /etc/init.d/koha-index-daemon start

shows error:-

/etc/init.d/koha-index-daemon: line 59: log_daemon_msg: command not found
 /etc/init.d/koha-index-daemon: line 63: log_end_msg: command not found

And such as,

/etc/init.d/koha-index-daemon stop

shows error:-

/etc/init.d/koha-index-daemon: line 67: log_daemon_msg: command not found
 /etc/init.d/koha-index-daemon: line 71: log_end_msg: command not found


Can you pleasee see in this matter again. Please help me in this regard.

Thanx in Advance,

*Sunil*


On Fri, Sep 21, 2012 at 3:25 PM, Bernardo Gonzalez Kriegel 
bgkrie...@gmail.com wrote:

 Sunil,
 the problem, as indicated by this line

 /etc/init.d/koha-index-daemon: line 68: daemon: command not found

 is that you don't have the 'daemon' program.

 On Centos this is unavailable, so go to  http://libslack.org/daemon/ ,
 download the source, compile and install.

 Regards,
 Bernardo

 --
 Bernardo Gonzalez Kriegel
 bgkrie...@gmail.com



 On Fri, Sep 21, 2012 at 6:12 AM, sunil sharma koha.sunil...@gmail.comwrote:

 Dear All,

 I am facing an error while executing my koha-index-daemon file using *
 koha-index-daemon-ctl.sh*.


 My koha-index-daemon-ctl.sh file is as:

 #!/bin/sh

 # This file is part of Koha.
 #
 # Koha 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 2 of the License, or (at your option) any
 later
 # version.
 #
 # Koha 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
 # Koha; if not, write to the Free Software Foundation, Inc., 59 Temple
 Place,
 # Suite 330, Boston, MA  02111-1307 USA

 ### BEGIN INIT INFO
 # Provides:  koha-index-daemon-$DBNAME
 # Required-Start:$local_fs $syslog
 # Required-Stop: $local_fs $syslog
 # Default-Start: 2 3 4 5
 # Default-Stop:  0 1 6
 # X-Interactive: false
 # Short-Description: Start/stop koha-index-daemon for $DBNAME
 ### END INIT INFO

 . /lib/lsb/init-functions

 USER=koha
 GROUP=koha
 DBNAME=koha
 NAME=koha-index-daemon-$DBNAME
 LOGDIR=/var/log/koha
 PERL5LIB=/usr/share/koha/lib
 KOHA_CONF=/etc/koha/koha-conf.xml
 ERRLOG=$LOGDIR/koha-index-daemon.err
 STDOUT=$LOGDIR/koha-index-daemon.log
 OUTPUT=$LOGDIR/koha-index-daemon-output.log

 export KOHA_CONF
 export PERL5LIB

 INDEXDAEMON=koha-index-daemon
 INDEXDAEMON_OPTS=--timeout 30 --conf $KOHA_CONF \
   --directory /var/tmp/koha-index-daemon-$DBNAME

 DAEMONOPTS=--name=$NAME \
 --errlog=$ERRLOG \
 --stdout=$STDOUT \
 --output=$OUTPUT \
 --verbose=1 --respawn --delay=30

 USER=--user=$USER.$GROUP


 case $1 in
 start)
   log_daemon_msg Starting Koha indexing daemon ($DBNAME)
   if daemon $DAEMONOPTS $USER -- $INDEXDAEMON $INDEXDAEMON_OPTS; then
 log_end_msg 0
   else
 log_end_msg 1
   fi
   ;;
 stop)
   log_daemon_msg Stopping Koha indexing daemon ($DBNAME)
   if daemon $DAEMONOPTS $USER --stop -- $INDEXDAEMON
 $INDEXDAEMON_OPTS;
 then
 log_end_msg 0
   else
 log_end_msg 1
   fi
   ;;
 restart)
   log_daemon_msg Restarting the Koha indexing daemon ($DBNAME)
   if daemon $DAEMONOPTS $USER --restart -- $INDEXDAEMON
 $INDEXDAEMON_OPTS; then
 log_end_msg 0
   else
 log_end_msg 1
   fi
   ;;
 *)
   log_success_msg Usage: /etc/init.d/$NAME {start|stop|restart}
   exit 1
   ;;
 esac

 Then I create a symlink for this script as:-

 $ ln -s /usr/share/koha/bin/koha-zebra-indexdaemon-ctl.sh
 /etc/init.d/koha-zebra-indexdaemon


 While I am running this file giving any option start|stop|restart it
 displays error, like as below:

 $ /etc/init.d/koha-index-daemon start

 shows error:-

 /etc/init.d/koha-index-daemon: line 59: log_daemon_msg: command not found
 /etc/init.d/koha-index-daemon: line 60: daemon: command not found
 /etc/init.d/koha-index-daemon: line 63: log_end_msg: command not found

 And such as,

 /etc/init.d/koha-index-daemon stop

 shows error:-

 /etc/init.d/koha-index-daemon: line 67: log_daemon_msg: command not found
 /etc/init.d/koha-index-daemon: line 68: daemon: command not found
 /etc/init.d/koha-index-daemon: line 71: log_end_msg: command not found

 Any body can help me in this regard is very useful to me. I am using *koha
 3.08* on *centos 6.2*. My zebra index version is
 *Zebrahttp://www.indexdata.com/zebra2.0.52.


 Thanx in Advance,

 Sunil   *
 ___
 Koha