Koha-clms/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
..
LEEME.Debian
…
koha-common.xml Bug 22417: Add debian script koha-worker 2020-10-05 15:22:44 +02:00
koha-create-dirs.xml Bug 10042 - Minor typo ("Communnity") in packages docs 2013-04-18 08:36:11 -04:00
koha-create.xml Bug 18984: Remove NORMARC support 2021-10-07 15:36:40 +02:00
koha-disable.xml Bug 10104 - make koha-disable more robust 2013-05-01 21:58:38 -04:00
koha-dump-defaults.xml Bug 10042 - Minor typo ("Communnity") in packages docs 2013-04-18 08:36:11 -04:00
koha-dump.xml Bug 14532: Add --exclude-indexes switch to koha-dump 2016-03-02 04:39:51 +00:00
koha-elasticsearch.xml Bug 23137: Add documentation 2020-04-29 17:02:11 +01:00
koha-email-disable.xml Bug 10150 - koha-email-disable error handling 2013-05-02 15:04:57 -07:00
koha-email-enable.xml Bug 10157 - koha-email-enable error handling 2013-05-15 08:13:17 -04:00
koha-enable.xml Bug 10101 - make koha-enable more robust 2013-05-01 22:00:13 -04:00
koha-foreach.xml Bug 17717: Add a --chdir option switch for koha-foreach 2018-03-15 08:22:04 +00:00
koha-indexer.xml Bug 24306: (QA follow-up) Fix the XML 2020-08-13 07:55:44 +02:00
koha-list.xml Bug 17429: document the --plack/--noplack options of koha-list 2021-01-19 16:03:34 +01:00
koha-mysql.xml Bug 12372: Updated man pages for koha-mysql 2015-08-24 13:18:12 -03:00
koha-mysqlcheck.xml Bug 10782 - Add a koha-mysqlcheck script 2014-04-23 12:30:06 +00:00
koha-plack.xml Bug 13791: koha-plack documentation 2015-08-24 13:00:40 -03:00
koha-rebuild-zebra.xml Bug 17468: Remove koha-*-zebra scripts and its traces 2018-03-26 17:31:27 -03:00
koha-remove.xml Bug 17266 - Update man page for koha-remove with -p 2016-09-15 13:46:10 +00:00
koha-reset-passwd.xml Bug 10042 - Minor typo ("Communnity") in packages docs 2013-04-18 08:36:11 -04:00
koha-restore.xml Bug 10042 - Minor typo ("Communnity") in packages docs 2013-04-18 08:36:11 -04:00
koha-run-backups.xml Bug 21111: Add --exclude-indexes to koha-run-backups 2020-11-04 12:59:34 +01:00
koha-shell.xml
…
koha-sip.xml Bug 24340: allow koha-sip --disable inst 2020-02-12 16:09:35 +00:00
koha-sitemap.xml Bug 16016: Sitemap handling scripts for packages 2016-05-04 13:34:21 +00:00
koha-translate.xml Bug 16749: Update debian docs for koha-translate 2017-02-17 13:20:57 +00:00
koha-upgrade-schema.xml Bug 10042 - Minor typo ("Communnity") in packages docs 2013-04-18 08:36:11 -04:00
koha-upgrade-to-3.4.xml Bug 10042 - Minor typo ("Communnity") in packages docs 2013-04-18 08:36:11 -04:00
koha-worker.xml Bug 27783: Add queue handling in packaging tools 2022-04-13 15:55:40 +02:00
koha-zebra.xml Bug 17467: Add koha-zebra documentation 2017-10-27 14:10:30 -03:00