Bugzilla – Attachment 102757 Details for
Bug 25109
Add execution locking to Koha::Script
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25109: Add lockdir configuration entry
Bug-25109-Add-lockdir-configuration-entry.patch (text/plain), 5.07 KB, created by
Tomás Cohen Arazi (tcohen)
on 2020-04-10 22:40:42 UTC
(
hide
)
Description:
Bug 25109: Add lockdir configuration entry
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2020-04-10 22:40:42 UTC
Size:
5.07 KB
patch
obsolete
>From 22ee5f85498ebaba4ac23a28259cf52501c85fa7 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Fri, 10 Apr 2020 19:36:09 -0300 >Subject: [PATCH] Bug 25109: Add lockdir configuration entry > >--- > Makefile.PL | 9 +++++++++ > debian/templates/koha-conf-site.xml.in | 1 + > etc/koha-conf.xml | 1 + > 3 files changed, 11 insertions(+) > >diff --git a/Makefile.PL b/Makefile.PL >index f65e832e8b..4c52f0e04e 100644 >--- a/Makefile.PL >+++ b/Makefile.PL >@@ -264,6 +264,10 @@ contain information of interest to Koha developers. > Directory for Koha documentation accessed from the > command-line, e.g., READMEs. > >+=item LOCK_DIR >+ >+Directory for Koha scripts to put their locks. >+ > =item LOG_DIR > > Directory for Apache and Zebra logs produced by Koha. >@@ -359,6 +363,7 @@ my $target_map = { > './serials' => 'INTRANET_CGI_DIR', > './services' => 'INTRANET_CGI_DIR', > './skel' => 'NONE', >+ './skel/var/lock/koha' => { target => 'LOCK_DIR', trimdir => -1 }, > './skel/var/log/koha' => { target => 'LOG_DIR', trimdir => -1 }, > './skel/var/spool/koha' => { target => 'BACKUP_DIR', trimdir => -1 }, > './skel/var/run/koha/zebradb' => { target => 'ZEBRA_RUN_DIR', trimdir => -1 }, >@@ -664,6 +669,7 @@ my %test_suite_override_dirs = ( > KOHA_CONF_DIR => ['etc'], > ZEBRA_CONF_DIR => ['etc', 'zebradb'], > Z3950_CONF_DIR => ['etc', 'z3950'], >+ LOCK_DIR => ['var', 'lock'], > LOG_DIR => ['var', 'log'], > BACKUP_DIR => ['var', 'spool'], > SCRIPT_DIR => ['bin'], >@@ -1393,6 +1399,7 @@ sub get_target_directories { > $dirmap{'MAN_DIR'} = File::Spec->catdir(@basedir, $package, 'man'); > $dirmap{'DOC_DIR'} = File::Spec->catdir(@basedir, $package, 'doc'); > $dirmap{'ZEBRA_LOCK_DIR'} = File::Spec->catdir(@basedir, $package, 'var', 'lock', 'zebradb'); >+ $dirmap{'LOCK_DIR'} = File::Spec->catdir(@basedir, $package, 'var', 'lock'); > $dirmap{'LOG_DIR'} = File::Spec->catdir(@basedir, $package, 'var', 'log'); > $dirmap{'BACKUP_DIR'} = File::Spec->catdir(@basedir, $package, 'var', 'spool'); > $dirmap{'PLUGINS_DIR'} = File::Spec->catdir(@basedir, $package, 'var', 'lib', 'koha', 'plugins'); >@@ -1429,6 +1436,7 @@ sub get_target_directories { > $dirmap{'MAN_DIR'} = File::Spec->catdir(@basedir, $package, 'man'); > $dirmap{'DOC_DIR'} = File::Spec->catdir(@basedir, $package, 'doc'); > $dirmap{'ZEBRA_LOCK_DIR'} = File::Spec->catdir(@basedir, $package, 'var', 'lock', 'zebradb'); >+ $dirmap{'LOCK_DIR'} = File::Spec->catdir(@basedir, $package, 'var', 'lock'); > $dirmap{'LOG_DIR'} = File::Spec->catdir(@basedir, $package, 'var', 'log'); > $dirmap{'BACKUP_DIR'} = File::Spec->catdir(@basedir, $package, 'var', 'spool'); > $dirmap{'PLUGINS_DIR'} = File::Spec->catdir(@basedir, $package, 'var', 'lib', 'plugins'); >@@ -1454,6 +1462,7 @@ sub get_target_directories { > $dirmap{'MAN_DIR'} = File::Spec->catdir(@basedir, $package, 'man'); > $dirmap{'DOC_DIR'} = File::Spec->catdir(@basedir, $package, 'doc'); > $dirmap{'ZEBRA_LOCK_DIR'} = File::Spec->catdir(File::Spec->rootdir(), 'var', 'lock', $package, 'zebradb'); >+ $dirmap{'LOCK_DIR'} = File::Spec->catdir(File::Spec->rootdir(), 'var', 'lock', $package); > $dirmap{'LOG_DIR'} = File::Spec->catdir(File::Spec->rootdir(), 'var', 'log', $package); > $dirmap{'BACKUP_DIR'} = File::Spec->catdir(File::Spec->rootdir(), 'var', 'spool', $package); > $dirmap{'PLUGINS_DIR'} = File::Spec->catdir(File::Spec->rootdir(), 'var', 'lib', $package, 'plugins'); >diff --git a/debian/templates/koha-conf-site.xml.in b/debian/templates/koha-conf-site.xml.in >index 319f492c23..44f557637d 100644 >--- a/debian/templates/koha-conf-site.xml.in >+++ b/debian/templates/koha-conf-site.xml.in >@@ -302,6 +302,7 @@ __END_SRU_PUBLICSERVER__ > <useldapserver>0</useldapserver><!-- see C4::Auth_with_ldap for extra configs you must add if you want to turn this on --> > <useshibboleth>0</useshibboleth><!-- see C4::Auth_with_shibboleth for extra configs you must do to turn this on --> > <zebra_lockdir>/var/lock/koha/__KOHASITE__</zebra_lockdir> >+ <lockdir>/var/lock/koha/__KOHASITE__</lockdir> > <use_zebra_facets>1</use_zebra_facets> > <zebra_max_record_size>1024</zebra_max_record_size> > <log4perl_conf>__KOHA_CONF_DIR__/log4perl.conf</log4perl_conf> >diff --git a/etc/koha-conf.xml b/etc/koha-conf.xml >index 5be267d656..2e8c301aa6 100644 >--- a/etc/koha-conf.xml >+++ b/etc/koha-conf.xml >@@ -119,6 +119,7 @@ __PAZPAR2_TOGGLE_XML_POST__ > <useldapserver>0</useldapserver><!-- see C4::Auth_with_ldap for extra configs you must add if you want to turn this on --> > <useshibboleth>0</useshibboleth><!-- see C4::Auth_with_shibboleth for extra configs you must do to turn this on --> > <zebra_lockdir>__ZEBRA_LOCK_DIR__</zebra_lockdir> >+ <lockdir>__ZEBRA_LOCK_DIR__</lockdir> > <use_zebra_facets>1</use_zebra_facets> > <zebra_max_record_size>1024</zebra_max_record_size> > <log4perl_conf>__KOHA_CONF_DIR__/log4perl.conf</log4perl_conf> >-- >2.26.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 25109
:
102757
|
102758
|
102759
|
102760
|
102761
|
102762
|
102814
|
102815
|
102816
|
102817
|
102840
|
102841
|
102842
|
102843
|
102856
|
102887
|
102904
|
102905
|
102906
|
102907
|
102908
|
102909