[Koha-bugs] [Bug 8567] New: Set output directory for fines.pl in cron config created by the packages

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Aug 3 11:35:23 CEST 2012


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8567

          Priority: P5 - low
 Change sponsored?: ---
            Bug ID: 8567
                CC: robin at catalyst.net.nz
          Assignee: koha-bugs at lists.koha-community.org
           Summary: Set output directory for fines.pl in cron config
                    created by the packages
          Severity: enhancement
    Classification: Unclassified
                OS: All
          Reporter: magnus at enger.priv.no
          Hardware: All
            Status: NEW
           Version: master
         Component: Packaging
           Product: Koha

When the Debian packages are installed, they create a
/etc/cron.daily/koha-common config based on the template in
debian/koha-common.cron.daily. This results in the following command for
fines.pl: 

  koha-foreach --enabled /usr/share/koha/bin/cronjobs/fines.pl

and this results in this script writing daily log files to /tmp, which is less
than ideal. Now, fines.pl has an option --out to specify where the logs are
saved, so we could change the cron config to something like this:

  koha-foreach --enabled /usr/share/koha/bin/cronjobs/fines.pl --out
/var/log/koha/__instancename__

Caveat: This depends on Bug 8566 being implemented first! (Because without it
there is no way for koha-foreach to use directories named after the instances.)

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list