Bug 15011: koha-indexer should define the --pidfiles on starting the daemon
The --pidfiles options is not provided on starting the daemon and the is_indexer_running consider that the daemon is not running
Test plan:
koha-indexer start
koha-indexer stop
should start and stop the zebra daemon wuthout any error.
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Tested on kohadevbox:ansible
sudo debian/scripts/koha-indexer --stop kohadev
sudo debian/scripts/koha-indexer --start kohadev
sudo debian/scripts/koha-indexer --restart kohadev
All work as expected on the different scenarios.
(cherry picked from commit 0ba1fb9e77)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
This commit is contained in:
parent
da2dfc07e3
commit
274e69a428
|
|
@ -65,6 +65,7 @@ start_indexer()
|
|||
--errlog=/var/log/koha/$name/indexer-error.log \
|
||||
--stdout=/var/log/koha/$name/indexer.log \
|
||||
--output=/var/log/koha/$name/indexer-output.log \
|
||||
--pidfiles=/var/run/koha/$name/ \
|
||||
--verbose=1 --respawn --delay=30 \
|
||||
--user=$name-koha.$name-koha"
|
||||
|
||||
|
|
@ -92,6 +93,7 @@ stop_indexer()
|
|||
--errlog=/var/log/koha/$name/indexer-error.log \
|
||||
--stdout=/var/log/koha/$name/indexer.log \
|
||||
--output=/var/log/koha/$name/indexer-output.log \
|
||||
--pidfiles=/var/run/koha/$name/ \
|
||||
--verbose=1 --respawn --delay=30 \
|
||||
--user=$name-koha.$name-koha"
|
||||
|
||||
|
|
@ -119,6 +121,7 @@ restart_indexer()
|
|||
--errlog=/var/log/koha/$name/indexer-error.log \
|
||||
--stdout=/var/log/koha/$name/indexer.log \
|
||||
--output=/var/log/koha/$name/indexer-output.log \
|
||||
--pidfiles=/var/run/koha/$name/ \
|
||||
--verbose=1 --respawn --delay=30 \
|
||||
--user=$name-koha.$name-koha"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue