View | Details | Raw Unified | Return to bug 8773
Collapse All | Expand All

(-)a/debian/docs/koha-common.xml (+21 lines)
Lines 131-136 Link Here
131
          <para>Stop Zebra for named Koha instances.</para>
131
          <para>Stop Zebra for named Koha instances.</para>
132
        </listitem>
132
        </listitem>
133
      </varlistentry>
133
      </varlistentry>
134
135
      <varlistentry>
136
        <term><option>koha-start-indexer</option></term>
137
        <listitem>
138
          <para>Start the indexer daemon for named Koha instances.</para>
139
        </listitem>
140
      </varlistentry>
141
142
      <varlistentry>
143
        <term><option>koha-restart-indexer</option></term>
144
        <listitem>
145
          <para>Restart the indexer daemon for named Koha instances.</para>
146
        </listitem>
147
      </varlistentry>
148
149
      <varlistentry>
150
        <term><option>koha-stop-indexer</option></term>
151
        <listitem>
152
          <para>Stop the indexer daemon for named Koha instances.</para>
153
        </listitem>
154
      </varlistentry>
134
    </variablelist>
155
    </variablelist>
135
    </refsect2>
156
    </refsect2>
136
157
(-)a/debian/docs/koha-restart-indexer.xml (+43 lines)
Line 0 Link Here
1
<article xmlns='http://docbook.org/ns/docbook'>
2
<title>koha-restart-indexer</title>
3
<info>
4
<productname>Koha</productname> is the first free software library automation package.
5
<author>
6
  <orgname>The Koha Communnity</orgname>
7
  <uri>http://koha-community.org/</uri>
8
</author>
9
</info>
10
11
<refentry xml:id="koha-restart-indexer">
12
13
  <refmeta>
14
    <refentrytitle>koha-restart-indexer</refentrytitle>
15
    <manvolnum>8</manvolnum>
16
  </refmeta>
17
18
  <refnamediv>
19
    <refname>koha-restart-indexer</refname>
20
    <refpurpose>Restart the indexer daemon for named Koha instances.</refpurpose>
21
    <refclass>UNIX/Linux</refclass>
22
  </refnamediv>
23
24
  <refsynopsisdiv>
25
    <cmdsynopsis>
26
      <command>koha-restart-indexer</command> <arg choice="req" rep="repeat"><replaceable>instancename</replaceable></arg>
27
    </cmdsynopsis>
28
  </refsynopsisdiv>
29
30
  <refsect1><title>Description</title>
31
  <para>Restart the indexer daemon for named Koha instances.</para>
32
  </refsect1>
33
  
34
  <refsect1><title>See also</title>
35
  <simplelist type="inline">
36
    <member><command>koha-start-indexer(8)</command></member>
37
    <member><command>koha-stop-indexer(8)</command></member>
38
  </simplelist>
39
  </refsect1>
40
  
41
</refentry>
42
43
</article>
(-)a/debian/docs/koha-start-indexer.xml (+43 lines)
Line 0 Link Here
1
<article xmlns='http://docbook.org/ns/docbook'>
2
<title>koha-start-indexer</title>
3
<info>
4
<productname>Koha</productname> is the first free software library automation package.
5
<author>
6
  <orgname>The Koha Communnity</orgname>
7
  <uri>http://koha-community.org/</uri>
8
</author>
9
</info>
10
11
<refentry xml:id="koha-start-indexer">
12
13
  <refmeta>
14
    <refentrytitle>koha-start-indexer</refentrytitle>
15
    <manvolnum>8</manvolnum>
16
  </refmeta>
17
18
  <refnamediv>
19
    <refname>koha-start-indexer</refname>
20
    <refpurpose>Start the indexer daemon for named Koha instances.</refpurpose>
21
    <refclass>UNIX/Linux</refclass>
22
  </refnamediv>
23
24
  <refsynopsisdiv>
25
    <cmdsynopsis>
26
      <command>koha-start-indexer</command> <arg choice="req" rep="repeat"><replaceable>instancename</replaceable></arg>
27
    </cmdsynopsis>
28
  </refsynopsisdiv>
29
30
  <refsect1><title>Description</title>
31
  <para>Start the indexer daemon for named Koha instances.</para>
32
  </refsect1>
33
  
34
  <refsect1><title>See also</title>
35
  <simplelist type="inline">
36
    <member><command>koha-restart-indexer(8)</command></member>
37
    <member><command>koha-stop-indexer(8)</command></member>
38
  </simplelist>
39
  </refsect1>
40
  
41
</refentry>
42
43
</article>
(-)a/debian/docs/koha-stop-indexer.xml (+43 lines)
Line 0 Link Here
1
<article xmlns='http://docbook.org/ns/docbook'>
2
<title>koha-stop-indexer</title>
3
<info>
4
<productname>Koha</productname> is the first free software library automation package.
5
<author>
6
  <orgname>The Koha Communnity</orgname>
7
  <uri>http://koha-community.org/</uri>
8
</author>
9
</info>
10
11
<refentry xml:id="koha-stop-indexer">
12
13
  <refmeta>
14
    <refentrytitle>koha-stop-indexer</refentrytitle>
15
    <manvolnum>8</manvolnum>
16
  </refmeta>
17
18
  <refnamediv>
19
    <refname>koha-stop-indexer</refname>
20
    <refpurpose>Stop indexer daemon for named Koha instances.</refpurpose>
21
    <refclass>UNIX/Linux</refclass>
22
  </refnamediv>
23
24
  <refsynopsisdiv>
25
    <cmdsynopsis>
26
      <command>koha-stop-indexer</command> <arg choice="req" rep="repeat"><replaceable>instancename</replaceable></arg>
27
    </cmdsynopsis>
28
  </refsynopsisdiv>
29
30
  <refsect1><title>Description</title>
31
  <para>Stop indexer daemon for named Koha instances.</para>
32
  </refsect1>
33
  
34
  <refsect1><title>See also</title>
35
  <simplelist type="inline">
36
    <member><command>koha-restart-indexer(8)</command></member>
37
    <member><command>koha-start-indexer(8)</command></member>
38
  </simplelist>
39
  </refsect1>
40
  
41
</refentry>
42
43
</article>
(-)a/debian/koha-common.cron.d (-1 / +1 lines)
Lines 6-10 Link Here
6
SHELL=/bin/sh
6
SHELL=/bin/sh
7
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
7
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
8
8
9
*/5 * * * * root test -x /usr/sbin/koha-rebuild-zebra && koha-rebuild-zebra $(koha-list --enabled)
9
# */5 * * * * root test -x /usr/sbin/koha-rebuild-zebra && koha-rebuild-zebra $(koha-list --enabled)
10
*/15 * * * * root koha-foreach --enabled --email /usr/share/koha/bin/cronjobs/process_message_queue.pl
10
*/15 * * * * root koha-foreach --enabled --email /usr/share/koha/bin/cronjobs/process_message_queue.pl
(-)a/debian/koha-common.init (+3 lines)
Lines 45-50 do_start() Link Here
45
    # We insure all required directories exist, including disabled ones.
45
    # We insure all required directories exist, including disabled ones.
46
    koha-create-dirs $(koha-list)
46
    koha-create-dirs $(koha-list)
47
    koha-start-zebra $(koha-list --enabled)
47
    koha-start-zebra $(koha-list --enabled)
48
    koha-start-indexer $(koha-list --enabled)
48
}
49
}
49
50
50
#
51
#
Lines 54-59 do_stop() Link Here
54
{
55
{
55
    # We stop everything, including disabled ones.
56
    # We stop everything, including disabled ones.
56
    koha-stop-zebra $(koha-list) || true
57
    koha-stop-zebra $(koha-list) || true
58
    koha-stop-indexer $(koha-list --enabled)
57
}
59
}
58
60
59
#
61
#
Lines 61-66 do_stop() Link Here
61
#
63
#
62
do_reload() {
64
do_reload() {
63
    koha-restart-zebra $(koha-list --enabled)
65
    koha-restart-zebra $(koha-list --enabled)
66
    koha-restart-indexer $(koha-list --enabled)
64
}
67
}
65
68
66
case "$1" in
69
case "$1" in
(-)a/debian/koha-common.install (+3 lines)
Lines 21-30 debian/scripts/koha-mysql usr/sbin Link Here
21
debian/scripts/koha-rebuild-zebra           usr/sbin
21
debian/scripts/koha-rebuild-zebra           usr/sbin
22
debian/scripts/koha-remove                  usr/sbin
22
debian/scripts/koha-remove                  usr/sbin
23
debian/scripts/koha-reset-passwd            usr/sbin
23
debian/scripts/koha-reset-passwd            usr/sbin
24
debian/scripts/koha-restart-indexer         usr/sbin
24
debian/scripts/koha-restart-zebra           usr/sbin
25
debian/scripts/koha-restart-zebra           usr/sbin
25
debian/scripts/koha-restore                 usr/sbin
26
debian/scripts/koha-restore                 usr/sbin
26
debian/scripts/koha-run-backups             usr/sbin
27
debian/scripts/koha-run-backups             usr/sbin
28
debian/scripts/koha-start-indexer           usr/sbin
27
debian/scripts/koha-start-zebra             usr/sbin
29
debian/scripts/koha-start-zebra             usr/sbin
30
debian/scripts/koha-stop-indexer            usr/sbin
28
debian/scripts/koha-stop-zebra              usr/sbin
31
debian/scripts/koha-stop-zebra              usr/sbin
29
debian/scripts/koha-upgrade-schema          usr/sbin
32
debian/scripts/koha-upgrade-schema          usr/sbin
30
debian/scripts/koha-upgrade-to-3.4          usr/sbin
33
debian/scripts/koha-upgrade-to-3.4          usr/sbin
(-)a/debian/scripts/koha-create (+3 lines)
Lines 340-345 then Link Here
340
340
341
    # Start Zebra.
341
    # Start Zebra.
342
    koha-start-zebra "$name"
342
    koha-start-zebra "$name"
343
344
    # Start Indexer daemon
345
    koha-start-indexer "$name"
343
fi
346
fi
344
347
345
348
(-)a/debian/scripts/koha-restart-indexer (+50 lines)
Line 0 Link Here
1
#!/bin/sh
2
#
3
# koha-restart-indexer -- Restart Indexer Daemon for named Koha instandes
4
# Copyright 2012 Tomás Cohen Arazi @ Universidad Nacional de Córdoba
5
# 
6
# This program is free software: you can redistribute it and/or modify
7
# it under the terms of the GNU General Public License as published by
8
# the Free Software Foundation, either version 3 of the License, or
9
# (at your option) any later version.
10
# 
11
# This program is distributed in the hope that it will be useful,
12
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
# GNU General Public License for more details.
15
# 
16
# You should have received a copy of the GNU General Public License
17
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
19
set -e
20
21
. /lib/lsb/init-functions
22
23
INDEXDAEMON="koha-index-daemon"
24
PERL5LIB="/usr/share/koha/lib"
25
26
for name in "$@"
27
do
28
29
      KOHA_CONF="/etc/koha/sites/$name/koha-conf.xml"
30
31
      INDEXDAEMON_OPTS="--timeout 30 \
32
                        --conf $KOHA_CONF \
33
                        --directory /var/tmp/koha-indexer-daemon-$name"
34
35
      DAEMONOPTS="--name=$name-koha-indexer \
36
            --errlog=/var/log/koha/$name/koha-indexer-error.log \
37
            --stdout=/var/log/koha/$name/koha-indexer.log \
38
            --output=/var/log/koha/$name/koha-indexer-output.log \
39
            --verbose=1 --respawn --delay=30 \
40
            --user=$name-koha.$name-koha"
41
42
      log_daemon_msg "Restarting Koha indexing daemon for $name"
43
44
      if daemon $DAEMONOPTS --restart -- $INDEXDAEMON $INDEXDAEMON_OPTS; then
45
        log_end_msg 0
46
      else
47
        log_end_msg 1
48
      fi
49
50
done
(-)a/debian/scripts/koha-start-indexer (+50 lines)
Line 0 Link Here
1
#!/bin/sh
2
#
3
# koha-start-indexer -- Start Indexer Daemon for named Koha instandes
4
# Copyright 2012 Tomás Cohen Arazi @ Universidad Nacional de Córdoba
5
# 
6
# This program is free software: you can redistribute it and/or modify
7
# it under the terms of the GNU General Public License as published by
8
# the Free Software Foundation, either version 3 of the License, or
9
# (at your option) any later version.
10
# 
11
# This program is distributed in the hope that it will be useful,
12
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
# GNU General Public License for more details.
15
# 
16
# You should have received a copy of the GNU General Public License
17
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
19
set -e
20
21
. /lib/lsb/init-functions
22
23
INDEXDAEMON="koha-index-daemon"
24
PERL5LIB="/usr/share/koha/lib"
25
26
for name in "$@"
27
do
28
29
      KOHA_CONF="/etc/koha/sites/$name/koha-conf.xml"
30
31
      INDEXDAEMON_OPTS="--timeout 30 \
32
                        --conf $KOHA_CONF \
33
                        --directory /var/tmp/koha-indexer-daemon-$name"
34
35
      DAEMONOPTS="--name=$name-koha-indexer \
36
            --errlog=/var/log/koha/$name/koha-indexer-error.log \
37
            --stdout=/var/log/koha/$name/koha-indexer.log \
38
            --output=/var/log/koha/$name/koha-indexer-output.log \
39
            --verbose=1 --respawn --delay=30 \
40
            --user=$name-koha.$name-koha"
41
42
      log_daemon_msg "Starting Koha indexing daemon for $name"
43
44
      if daemon $DAEMONOPTS -- $INDEXDAEMON $INDEXDAEMON_OPTS; then
45
        log_end_msg 0
46
      else
47
        log_end_msg 1
48
      fi
49
50
done
(-)a/debian/scripts/koha-stop-indexer (-1 / +50 lines)
Line 0 Link Here
0
- 
1
#!/bin/sh
2
#
3
# koha-stop-indexer -- Stop Indexer Daemon for named Koha instandes
4
# Copyright 2012 Tomás Cohen Arazi @ Universidad Nacional de Córdoba
5
# 
6
# This program is free software: you can redistribute it and/or modify
7
# it under the terms of the GNU General Public License as published by
8
# the Free Software Foundation, either version 3 of the License, or
9
# (at your option) any later version.
10
# 
11
# This program is distributed in the hope that it will be useful,
12
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
# GNU General Public License for more details.
15
# 
16
# You should have received a copy of the GNU General Public License
17
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
19
set -e
20
21
. /lib/lsb/init-functions
22
23
INDEXDAEMON="koha-index-daemon"
24
PERL5LIB="/usr/share/koha/lib"
25
26
for name in "$@"
27
do
28
29
      KOHA_CONF="/etc/koha/sites/$name/koha-conf.xml"
30
31
      INDEXDAEMON_OPTS="--timeout 30 \
32
                        --conf $KOHA_CONF \
33
                        --directory /var/tmp/koha-indexer-daemon-$name"
34
35
      DAEMONOPTS="--name=$name-koha-indexer \
36
            --errlog=/var/log/koha/$name/koha-indexer-error.log \
37
            --stdout=/var/log/koha/$name/koha-indexer.log \
38
            --output=/var/log/koha/$name/koha-indexer-output.log \
39
            --verbose=1 --respawn --delay=30 \
40
            --user=$name-koha.$name-koha"
41
42
      log_daemon_msg "Stopping Koha indexing daemon for $name"
43
44
      if daemon $DAEMONOPTS --stop -- $INDEXDAEMON $INDEXDAEMON_OPTS; then
45
        log_end_msg 0
46
      else
47
        log_end_msg 1
48
      fi
49
50
done

Return to bug 8773