cron jobs under Debian koha-common & koha-create
I'm still figuring out how to setup and configure my Koha - using multiple instances via koha-common and koha-create - excellent work BTW, works a treat for testing! After setting Authorities, I checked the system preferences' "dontmerge" and I saw the note about "ask your administrator to enable the merge_authorities.pl cronjob" (I wish I had an administrator 8-) I haven't messed with cron for a while, so I'll be brushing up, but I see the /etc/cron.d/koha-common takes care of the Zebra indexing - I just can't figure out how it handles the multiple instances (isn't it supposed to be running as the kohauser in each case? If I want to add other cronjobs, should I just add to that file, or should I set up a "normal" crontab for root? Should I copy over lines from koha's crontab.example (less the duplicated zebra one of course)? Thanks in advance. . .
* hansbkk@gmail.com (hansbkk@gmail.com) wrote:
I'm still figuring out how to setup and configure my Koha - using multiple instances via koha-common and koha-create - excellent work BTW, works a treat for testing!
After setting Authorities, I checked the system preferences' "dontmerge" and I saw the note about "ask your administrator to enable the merge_authorities.pl cronjob" (I wish I had an administrator 8-)
I haven't messed with cron for a while, so I'll be brushing up, but I see the /etc/cron.d/koha-common takes care of the Zebra indexing - I just can't figure out how it handles the multiple instances (isn't it supposed to be running as the kohauser in each case?
It is, and it does.
If I want to add other cronjobs, should I just add to that file, or should I set up a "normal" crontab for root?
There are other cron files look in /etc/cron.hourly/koha-common and /etc/cron.daily/koha-common .
Should I copy over lines from koha's crontab.example (less the duplicated zebra one of course)?
Check that they arent in any of the existing ones, then make a new file if not. Id suggest /etc/cron.d/local-koha or similair. Otherwise when you upgrade the packages you will have to resolve your edited version with the one in the package. If this is a job that should be run by default, then sending a patch to add it to the cron jobs in the packages would be most welcome. Chris
Thanks in advance. . . _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
-- Chris Cormack Catalyst IT Ltd. +64 4 803 2238 PO Box 11-053, Manners St, Wellington 6142, New Zealand
hansbkk@gmail.com schreef op wo 02-03-2011 om 21:13 [+0700]:
After setting Authorities, I checked the system preferences' "dontmerge" and I saw the note about "ask your administrator to enable the merge_authorities.pl cronjob" (I wish I had an administrator 8-)
I don't think that the packages enable that task. It's probably something they should do.
I haven't messed with cron for a while, so I'll be brushing up, but I see the /etc/cron.d/koha-common takes care of the Zebra indexing - I just can't figure out how it handles the multiple instances (isn't it supposed to be running as the kohauser in each case?
It runs everything through koha-foreach, which basically runs a command multiple times with the environment set up for each instance.
If I want to add other cronjobs, should I just add to that file, or should I set up a "normal" crontab for root?
I'd be inclined to create another file in cron.d/daily/hourly as appropriate that's written in the same style as the others, just because that'll make updates easier.
Should I copy over lines from koha's crontab.example (less the duplicated zebra one of course)?
They're pretty much all there already. -- Robin Sheat Catalyst IT Ltd. ✆ +64 4 803 2204 GPG: 5957 6D23 8B16 EFAB FEF8 7175 14D3 6485 A99C EB6D
Thanks to you both for helping cut down on the detective work. Since there are many places in the various doc sources that talk about enabling cron jobs, perhaps a section in the README.debian or the relevant wiki with a bit more implementation detail would be helpful to noobs like me. On Thu, Mar 3, 2011 at 6:33 AM, Robin Sheat <robin@catalyst.net.nz> wrote:
After setting Authorities, I checked the system preferences' "dontmerge" and I saw the note about "ask your administrator to enable the merge_authorities.pl cronjob" (I wish I had an administrator 8-)
I don't think that the packages enable that task. It's probably something they should do.
Robin, whether or not merge_authorities.pl (and perhaps others) should be cron'd or not depends on that particular dontmerge sysprep setting. I believe it is set to "Don't automatically update attached biblios" by default. Therefore I agree that the merge_authorities.pl should be enabled by the packages. I will try to figure out and take notes on: 1. how to set it up in cron using the same methods as the package 2. how to verify it is actually working I'll also keep my eyes open for another useful cronjob that **shouldn't** be enabled by default by the packaging and do the same, so that could perhaps be used as a walk-through example for the docs.
hansbkk@gmail.com schreef op do 03-03-2011 om 10:44 [+0700]:
I'll also keep my eyes open for another useful cronjob that **shouldn't** be enabled by default by the packaging and do the same, so that could perhaps be used as a walk-through example for the docs.
Cool. Feel free to create bugs on any of these things, that'll stop them getting forgotten about. Also, if you're feeling adventurous, I'll happy look at any patches you want to have a go making :) -- Robin Sheat Catalyst IT Ltd. ✆ +64 4 803 2204 GPG: 5957 6D23 8B16 EFAB FEF8 7175 14D3 6485 A99C EB6D
On Thu, Mar 3, 2011 at 10:56 AM, Robin Sheat <robin@catalyst.net.nz> wrote:
Cool. Feel free to create bugs on any of these things, that'll stop them getting forgotten about. Also, if you're feeling adventurous, I'll happy look at any patches you want to have a go making :)
Robin, I'll have a look at Koha's bug tracker, but I'm afraid I have no clue about what might be involved in patches, and suspect it's not a trivial process - I just don't feel able to absorb another research project ATM. I do want to contribute, but need to get a bit further up the Koha learning curve. I'd be happy to write up some user-level notes, same sort of style as Brooke's stuff if I could get access to the wiki. Hans
Hi Hans, On Wed, Mar 2, 2011 at 11:05 PM, <hansbkk@gmail.com> wrote:
On Thu, Mar 3, 2011 at 10:56 AM, Robin Sheat <robin@catalyst.net.nz> wrote:
Cool. Feel free to create bugs on any of these things, that'll stop them getting forgotten about. Also, if you're feeling adventurous, I'll happy look at any patches you want to have a go making :)
Robin,
I'll have a look at Koha's bug tracker, but I'm afraid I have no clue about what might be involved in patches, and suspect it's not a trivial process - I just don't feel able to absorb another research project ATM. I do want to contribute, but need to get a bit further up the Koha learning curve.
I'd be happy to write up some user-level notes, same sort of style as Brooke's stuff if I could get access to the wiki.
Just create yourself an account on the wiki and have at it! It's that simple. Kind Regards, Chris
Chris Nighswonger schreef op wo 02-03-2011 om 23:16 [-0500]:
Just create yourself an account on the wiki and have at it! It's that simple.
Same with the bug tracker, just fill in the boxes with as much information as you can. -- Robin Sheat Catalyst IT Ltd. ✆ +64 4 803 2204 GPG: 5957 6D23 8B16 EFAB FEF8 7175 14D3 6485 A99C EB6D
Now that wasn't hard at all was it 8-) http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=5821
Same with the bug tracker, just fill in the boxes with as much information as you can.
participants (4)
-
Chris Cormack -
Chris Nighswonger -
hansbkk@gmail.com -
Robin Sheat