Koha/debian/docs
Tomas Cohen Arazi f1fef6527c Bug 27783: Add queue handling in packaging tools
This patch adds queue name handling in is_worker_running and a handy
method to centralize process name handling for queue-specific workers.

To test:
1. Apply this patch
2. Run:
   $ source debian/scripts/koha-functions.sh
   $ get_worker_name kohadev
   kohadev-koha-worker
=> SUCCESS: Default queue means no queue name included
   $ get_worker_name kohadev default
   kohadev-koha-worker
=> SUCCESS: Default queue means no queue name included
   $ get_worker_name kohadev long_tasks
   kohadev-koha-worker-long_tasks
=> SUCCESS: Queue name appended to the name
4. Run:
   $ perl misc4dev/cp_debian_files.pl \
              --koha_dir /kohadevbox/koha \
              --gitify /kohadevbox/gitify \
              --instance kohadev
5. Run:
   $ koha-worker --start --queue oleonard kohadev
=> SUCCESS: Starts!
6. Check:
   $ ps waux | grep oleonard
=> SUCCESS: It is running
7. Play with --stop, --restart, --status and different queue names,
   including 'default' and without the --queue param as well.
=> SUCCESS: All as expected!
8. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2022-04-13 15:55:40 +02:00
..
koha-common.xml
koha-create-dirs.xml
koha-create.xml
koha-disable.xml
koha-dump-defaults.xml
koha-dump.xml
koha-elasticsearch.xml
koha-email-disable.xml
koha-email-enable.xml
koha-enable.xml
koha-foreach.xml
koha-indexer.xml
koha-list.xml
koha-mysql.xml
koha-mysqlcheck.xml
koha-plack.xml
koha-rebuild-zebra.xml
koha-remove.xml
koha-reset-passwd.xml
koha-restore.xml
koha-run-backups.xml
koha-shell.xml
koha-sip.xml
koha-sitemap.xml
koha-translate.xml
koha-upgrade-schema.xml
koha-upgrade-to-3.4.xml
koha-worker.xml
koha-zebra.xml
LEEME.Debian