Re: [Koha] Crontab - is that one tabs used to open beer cans?
Thank you so much. Its easier to use one that is already built than to spend hours trying to build the crontab. I appreciate you're sharing. Phillip Date: Mon, 7 Jul 2014 09:32:52 +0530 Subject: Re: [Koha] Crontab - is that one tabs used to open beer cans? From: vishal.patil@osslabs.biz To: pponchot@live.com Hi Philip, I think you have to set crontab again for this new version. I am using below crontab:PATH=/usr/bin:/sbin:/bin:/usr/sbinHOME=/home/koha/koha-dev(config) PERL5LIB=/home/koha/kohaclone(src-code)KOHA_CONF=/home/koha/koha-dev(config)/etc/koha-conf.xmlKOHA_CRON_PATH = /home/koha/kohaclone(src-code)/misc/cronjobs*/1 * * * * $PERL5LIB/misc/migration_tools/rebuild_zebra.pl -b -z 5 2 * * * $KOHA_CRON_PATH/fines.pl*/15 * * * * $PERL5LIB/misc/cronjobs/process_message_queue.pl10 3 * * * $KOHA_CRON_PATH/advance_notices.pl -c 0 3 * * * $KOHA_CRON_PATH/overdue_notices.pl -t#5 2 * * * $KOHA_CRON_PATH/fines.pl50 * * * * $KOHA_CRON_PATH/holds/build_holds_queue.pl >/dev/null 2>&1 0 3 * * * $KOHA_CRON_PATH/holds/cancel_expired_holds.pl >/dev/null 2>&1 Hope this will help you. On Mon, Jul 7, 2014 at 9:19 AM, Phillip Ponchot <pponchot@live.com> wrote: My new version of koha 3.14 is up and working. I was just looking at the crontab jobs and I didn't find anything in there. I used sudo crontab -e to open crontab.
From the old version of koha, there were several contrab jobs - exporting Perl, running fines.pl etc.
Are these jobs automatically put into crontab or do I have to put the jobs into crontab myself. Does anyone have a good example of the koha crontab jobs that should be in the crontab? Thanks, Phillip _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha -- Warm Regards,Vishal Patil Software Engineer - Nucsoft Ltd.phone: 022 32080161 www.osslabs.biz www.nucsoft.com vishal.patil@osslabs.biz
Phillip Ponchot schreef op zo 06-07-2014 om 21:09 [-0700]:
Thank you so much. Its easier to use one that is already built than to spend hours trying to build the crontab. I appreciate you're sharing. Phillip
Go with what Mark said to start with: you're viewing the user crontab when you use crontab -e, and that's most likely not what you want. The Koha-specific one lives in /etc/crontab or as a file within /etc/crontab.d. -- Robin Sheat Catalyst IT Ltd. ✆ +64 4 803 2204 GPG: 5FA7 4B49 1E4D CAA4 4C38 8505 77F5 B724 F871 3BDF
There is a "systems" crontab which ubuntu warns not to change. The crontab on the old server is sudo crotab -uroot -e where all the koha cronjobs are setup. When I run this command on the new server there's info about the crontab but there are no jobs in the crontab so I guess I'll have to create them to get koha to run properly. Thanks for your help. Phillip
From: robin@catalyst.net.nz To: koha@lists.katipo.co.nz Date: Mon, 7 Jul 2014 16:14:40 +1200 Subject: Re: [Koha] Crontab - is that one tabs used to open beer cans?
Phillip Ponchot schreef op zo 06-07-2014 om 21:09 [-0700]:
Thank you so much. Its easier to use one that is already built than to spend hours trying to build the crontab. I appreciate you're sharing. Phillip
Go with what Mark said to start with: you're viewing the user crontab when you use crontab -e, and that's most likely not what you want.
The Koha-specific one lives in /etc/crontab or as a file within /etc/crontab.d.
-- Robin Sheat Catalyst IT Ltd. ✆ +64 4 803 2204 GPG: 5FA7 4B49 1E4D CAA4 4C38 8505 77F5 B724 F871 3BDF
_______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Greetings, First, you still did not specify if you were doing a package installation or a source-based installation. Which are you doing? If a source-based installation, then your hacked up solution is passable, though not optimal. Second, let's reply to your points:
There is a "systems" crontab which ubuntu warns not to change.
You can create crontab jobs at the system level without modifying existing ones. Every file placed in the appropriate cron.* directory is its own crontab file.
The crontab on the old server is sudo crotab -uroot -e where all the koha cronjobs are setup.
This is a user crontab still. Was the old system a source-based installation or was it a packages based installation? If you are finding user crontabs, then it likely was a source-based installation. Why do you need to have the new system as a source-based install? A package-based installation sets up all the crontab jobs you need by default for you already. No crontab job tweaks required. Seriously, please consider a packages based installation: http://wiki.koha-community.org/wiki/Koha_on_ubuntu_-_packages And thirdly and lastly, did you actually go looking for crontab jobs manually? Like the following done on a package installation of Koha that we are using in production. $ cd /etc/cron.d $ ls -la total 20 drwxr-xr-x 2 root root 4096 Feb 11 17:29 . drwxr-xr-x 98 root root 4096 Jul 7 17:39 .. -rw-r--r-- 1 root root 422 Nov 22 2013 koha-common -rw-r--r-- 1 root root 102 Jun 19 2012 .placeholder -rw-r--r-- 1 root root 396 Dec 16 2011 sysstat $ cat koha-common # /etc/cron.d/koha-common # # Call koha-rebuild-zebra for each enabled Koha instance, to make sure the # Zebra indexes are up to date. SHELL=/bin/sh PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin */5 * * * * root test -x /usr/sbin/koha-rebuild-zebra && koha-rebuild-zebra -q $(koha-list --enabled) */15 * * * * root koha-foreach --enabled --email /usr/share/koha/bin/cronjobs/process_message_queue.pl $ cd ../cron.daily $ ls -la total 84 drwxr-xr-x 2 root root 4096 Jun 25 11:55 . drwxr-xr-x 98 root root 4096 Jul 7 17:39 .. -rwxr-xr-x 1 root root 633 Jul 12 2013 apache2 -rwxr-xr-x 1 root root 219 Apr 10 2012 apport -rwxr-xr-x 1 root root 15399 Jul 16 2013 apt -rwxr-xr-x 1 root root 314 Apr 18 2013 aptitude -rwxr-xr-x 1 root root 502 Mar 31 2012 bsdmainutils -rwxr-xr-x 1 root root 256 Jan 7 2013 dpkg -rwxr-xr-x 1 root root 1410 Nov 22 2013 koha-common -rwxr-xr-x 1 root root 372 Oct 4 2011 logrotate -rwxr-xr-x 1 root root 1365 Dec 28 2012 man-db -rwxr-xr-x 1 root root 606 Aug 17 2011 mlocate -rwxr-xr-x 1 root root 249 Sep 12 2012 passwd -rw-r--r-- 1 root root 102 Jun 19 2012 .placeholder -rwxr-xr-x 1 root root 2417 Jul 1 2011 popularity-contest -rwxr-xr-x 1 root root 2947 Jun 19 2012 standard -rwxr-xr-x 1 root root 469 Dec 16 2011 sysstat -rwxr-xr-x 1 root root 214 Sep 10 2012 update-notifier-common $ cat koha-common #!/bin/sh # /etc/cron.daily/koha-common -- Daily housekeeping tasks for all Kohas. # Copyright 2010 Catalyst IT, Ltd # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. koha-foreach --enabled --email /usr/share/koha/bin/cronjobs/overdue_noticest koha-foreach --enabled /usr/share/koha/bin/cronjobs/fines.pl koha-foreach --enabled --email /usr/share/koha/bin/cronjobs/advance_noticesc koha-foreach --enabled /usr/share/koha/bin/cronjobs/holds/cancel_expired_hol
/dev/null 2>&1 koha-foreach --enabled /usr/share/koha/bin/cronjobs/services_throttle.pl > null 2>&1 koha-foreach --enabled /usr/share/koha/bin/cronjobs/cleanup_database.pl --sns --zebraqueue 10 koha-foreach --enabled --noemail /usr/share/koha/bin/cronjobs/cleanup_databl --mail koha-run-backups --days 2 --output /var/spool/koha $ cd ../cron.hourly $ ls -la total 16 drwxr-xr-x 2 root root 4096 Feb 11 17:29 . drwxr-xr-x 98 root root 4096 Jul 7 17:39 .. -rwxr-xr-x 1 root root 840 Nov 22 2013 koha-common -rw-r--r-- 1 root root 102 Jun 19 2012 .placeholder $ cat koha-common #!/bin/sh # /etc/cron.hourly/koha-common -- Hourly housekeeping tasks for all Kohas. # Copyright 2010 Catalyst IT, Ltd # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>.
koha-foreach --enabled /usr/share/koha/bin/cronjobs/holds/build_holds_queue.pl And checking out cron.monthly and cron.weekly failed to find a koha-common file. And by the way, running a zebra process twice for the same instance is a bad thing to do. So please check /etc/cron.* before you use what was suggested by Vashil Patil. GPML, Mark Tompsett -----Original Message----- From: Phillip Ponchot Sent: Monday, July 07, 2014 1:21 PM To: Robin Sheat Cc: koha@lists.katipo.co.nz Subject: Re: [Koha] Crontab - is that one tabs used to open beer cans? There is a "systems" crontab which ubuntu warns not to change. The crontab on the old server is sudo crotab -uroot -e where all the koha cronjobs are setup. When I run this command on the new server there's info about the crontab but there are no jobs in the crontab so I guess I'll have to create them to get koha to run properly. Thanks for your help. Phillip
From: robin@catalyst.net.nz To: koha@lists.katipo.co.nz Date: Mon, 7 Jul 2014 16:14:40 +1200 Subject: Re: [Koha] Crontab - is that one tabs used to open beer cans?
Phillip Ponchot schreef op zo 06-07-2014 om 21:09 [-0700]:
Thank you so much. Its easier to use one that is already built than to spend hours trying to build the crontab. I appreciate you're sharing. Phillip
Go with what Mark said to start with: you're viewing the user crontab when you use crontab -e, and that's most likely not what you want.
The Koha-specific one lives in /etc/crontab or as a file within /etc/crontab.d.
-- Robin Sheat Catalyst IT Ltd. ✆ +64 4 803 2204 GPG: 5FA7 4B49 1E4D CAA4 4C38 8505 77F5 B724 F871 3BDF
_______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
_______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
The old koha was installed as a tarball on the old server so I believe this makes it a source-based. The new koha was installed via a repository. apt-get install koha-common. I did find in /etc/cron.d a koha-common file. The contents of this file was: ------------------------------------------------------------------------------------------------------------------------------------------------------- # /etc/cron.d/koha-common # # Call koha-rebuild-zebra for each enabled Koha instance, to make sure the # Zebra indexes are up to date. SHELL=/bin/sh PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin */5 * * * * root test -x /usr/sbin/koha-rebuild-zebra && koha-rebuild-zebra -q $(koha-list --enabled) */15 * * * * root koha-foreach --enabled --email /usr/share/koha/bin/cronjobs/process_message_queue.pl ----------------------------------------------------------------------------------------------------------------------------------------------------- also there is a directory in /user/share/koha/bin/cronjobs - are these run by the koha program or do I have to schedule them in a crontab job? ------------------------------------------------------------------------------------------------------------------------------------------------------------ advance_notices.pl holds backup.sh import_webservice_batch.pl batch_anonymise.pl j2a.pl build_browser_and_cloud.pl longoverdue.pl cart_to_shelf.pl MARC21_parse_test.pl check-url.pl overdue_notices.pl check-url-quick.pl printoverdues.sh cleanup_database.pl process_message_queue.pl cloud-kw.pl purge_suggestions.pl cloud-sample.conf rss CONFIGURE.gmail runreport.pl create_koc_db.pl serialsUpdate.pl crontab.example services_throttle.pl delete_expired_opac_registrations.pl social_data delete_patrons.pl staticfines.pl delete_unverified_opac_registrations.pl thirdparty fines.pl update_totalissues.pl gather_print_notices.pl ------------------------------------------------------------------------------------------------------------------------------------------ I just want to run automatically anything that needs to be done to keep koha up to date. Thanks Phillip
From: mtompset@hotmail.com To: pponchot@live.com CC: koha@lists.katipo.co.nz Subject: Re: [Koha] Crontab - is that one tabs used to open beer cans? Date: Mon, 7 Jul 2014 14:00:19 -0400
Greetings,
First, you still did not specify if you were doing a package installation or a source-based installation. Which are you doing? If a source-based installation, then your hacked up solution is passable, though not optimal.
Second, let's reply to your points:
There is a "systems" crontab which ubuntu warns not to change.
You can create crontab jobs at the system level without modifying existing ones. Every file placed in the appropriate cron.* directory is its own crontab file.
The crontab on the old server is sudo crotab -uroot -e where all the koha cronjobs are setup.
This is a user crontab still. Was the old system a source-based installation or was it a packages based installation? If you are finding user crontabs, then it likely was a source-based installation. Why do you need to have the new system as a source-based install? A package-based installation sets up all the crontab jobs you need by default for you already. No crontab job tweaks required.
Seriously, please consider a packages based installation: http://wiki.koha-community.org/wiki/Koha_on_ubuntu_-_packages
And thirdly and lastly, did you actually go looking for crontab jobs manually? Like the following done on a package installation of Koha that we are using in production.
$ cd /etc/cron.d $ ls -la total 20 drwxr-xr-x 2 root root 4096 Feb 11 17:29 . drwxr-xr-x 98 root root 4096 Jul 7 17:39 .. -rw-r--r-- 1 root root 422 Nov 22 2013 koha-common -rw-r--r-- 1 root root 102 Jun 19 2012 .placeholder -rw-r--r-- 1 root root 396 Dec 16 2011 sysstat $ cat koha-common # /etc/cron.d/koha-common # # Call koha-rebuild-zebra for each enabled Koha instance, to make sure the # Zebra indexes are up to date.
SHELL=/bin/sh PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
*/5 * * * * root test -x /usr/sbin/koha-rebuild-zebra && koha-rebuild-zebra -q $(koha-list --enabled) */15 * * * * root koha-foreach --enabled --email /usr/share/koha/bin/cronjobs/process_message_queue.pl $ cd ../cron.daily $ ls -la total 84 drwxr-xr-x 2 root root 4096 Jun 25 11:55 . drwxr-xr-x 98 root root 4096 Jul 7 17:39 .. -rwxr-xr-x 1 root root 633 Jul 12 2013 apache2 -rwxr-xr-x 1 root root 219 Apr 10 2012 apport -rwxr-xr-x 1 root root 15399 Jul 16 2013 apt -rwxr-xr-x 1 root root 314 Apr 18 2013 aptitude -rwxr-xr-x 1 root root 502 Mar 31 2012 bsdmainutils -rwxr-xr-x 1 root root 256 Jan 7 2013 dpkg -rwxr-xr-x 1 root root 1410 Nov 22 2013 koha-common -rwxr-xr-x 1 root root 372 Oct 4 2011 logrotate -rwxr-xr-x 1 root root 1365 Dec 28 2012 man-db -rwxr-xr-x 1 root root 606 Aug 17 2011 mlocate -rwxr-xr-x 1 root root 249 Sep 12 2012 passwd -rw-r--r-- 1 root root 102 Jun 19 2012 .placeholder -rwxr-xr-x 1 root root 2417 Jul 1 2011 popularity-contest -rwxr-xr-x 1 root root 2947 Jun 19 2012 standard -rwxr-xr-x 1 root root 469 Dec 16 2011 sysstat -rwxr-xr-x 1 root root 214 Sep 10 2012 update-notifier-common $ cat koha-common #!/bin/sh # /etc/cron.daily/koha-common -- Daily housekeeping tasks for all Kohas. # Copyright 2010 Catalyst IT, Ltd # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>.
koha-foreach --enabled --email /usr/share/koha/bin/cronjobs/overdue_noticest koha-foreach --enabled /usr/share/koha/bin/cronjobs/fines.pl koha-foreach --enabled --email /usr/share/koha/bin/cronjobs/advance_noticesc koha-foreach --enabled /usr/share/koha/bin/cronjobs/holds/cancel_expired_hol
/dev/null 2>&1 koha-foreach --enabled /usr/share/koha/bin/cronjobs/services_throttle.pl > null 2>&1 koha-foreach --enabled /usr/share/koha/bin/cronjobs/cleanup_database.pl --sns --zebraqueue 10 koha-foreach --enabled --noemail /usr/share/koha/bin/cronjobs/cleanup_databl --mail koha-run-backups --days 2 --output /var/spool/koha $ cd ../cron.hourly $ ls -la total 16 drwxr-xr-x 2 root root 4096 Feb 11 17:29 . drwxr-xr-x 98 root root 4096 Jul 7 17:39 .. -rwxr-xr-x 1 root root 840 Nov 22 2013 koha-common -rw-r--r-- 1 root root 102 Jun 19 2012 .placeholder $ cat koha-common #!/bin/sh # /etc/cron.hourly/koha-common -- Hourly housekeeping tasks for all Kohas. # Copyright 2010 Catalyst IT, Ltd # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>.
koha-foreach --enabled /usr/share/koha/bin/cronjobs/holds/build_holds_queue.pl
And checking out cron.monthly and cron.weekly failed to find a koha-common file.
And by the way, running a zebra process twice for the same instance is a bad thing to do. So please check /etc/cron.* before you use what was suggested by Vashil Patil.
GPML, Mark Tompsett
-----Original Message----- From: Phillip Ponchot Sent: Monday, July 07, 2014 1:21 PM To: Robin Sheat Cc: koha@lists.katipo.co.nz Subject: Re: [Koha] Crontab - is that one tabs used to open beer cans?
There is a "systems" crontab which ubuntu warns not to change. The crontab on the old server is sudo crotab -uroot -e where all the koha cronjobs are setup. When I run this command on the new server there's info about the crontab but there are no jobs in the crontab so I guess I'll have to create them to get koha to run properly.
Thanks for your help. Phillip
From: robin@catalyst.net.nz To: koha@lists.katipo.co.nz Date: Mon, 7 Jul 2014 16:14:40 +1200 Subject: Re: [Koha] Crontab - is that one tabs used to open beer cans?
Phillip Ponchot schreef op zo 06-07-2014 om 21:09 [-0700]:
Thank you so much. Its easier to use one that is already built than to spend hours trying to build the crontab. I appreciate you're sharing. Phillip
Go with what Mark said to start with: you're viewing the user crontab when you use crontab -e, and that's most likely not what you want.
The Koha-specific one lives in /etc/crontab or as a file within /etc/crontab.d.
-- Robin Sheat Catalyst IT Ltd. ✆ +64 4 803 2204 GPG: 5FA7 4B49 1E4D CAA4 4C38 8505 77F5 B724 F871 3BDF
_______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
_______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Don't touch anything. Seriously. If you have a packaged install, it's all been done. Look in cron.d, cron.daily etc all the jobs have been set up. Chris On 8 July 2014 7:17:29 am NZST, Phillip Ponchot <pponchot@live.com> wrote:
The old koha was installed as a tarball on the old server so I believe this makes it a source-based. The new koha was installed via a repository. apt-get install koha-common.
I did find in /etc/cron.d a koha-common file. The contents of this file was: ------------------------------------------------------------------------------------------------------------------------------------------------------- # /etc/cron.d/koha-common # # Call koha-rebuild-zebra for each enabled Koha instance, to make sure the # Zebra indexes are up to date.
SHELL=/bin/sh PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
*/5 * * * * root test -x /usr/sbin/koha-rebuild-zebra && koha-rebuild-zebra -q $(koha-list --enabled) */15 * * * * root koha-foreach --enabled --email /usr/share/koha/bin/cronjobs/process_message_queue.pl ----------------------------------------------------------------------------------------------------------------------------------------------------- also there is a directory in /user/share/koha/bin/cronjobs - are these run by the koha program or do I have to schedule them in a crontab job?
------------------------------------------------------------------------------------------------------------------------------------------------------------ advance_notices.pl holds backup.sh import_webservice_batch.pl batch_anonymise.pl j2a.pl build_browser_and_cloud.pl longoverdue.pl cart_to_shelf.pl MARC21_parse_test.pl check-url.pl overdue_notices.pl check-url-quick.pl printoverdues.sh cleanup_database.pl process_message_queue.pl cloud-kw.pl purge_suggestions.pl cloud-sample.conf rss CONFIGURE.gmail runreport.pl create_koc_db.pl serialsUpdate.pl crontab.example services_throttle.pl delete_expired_opac_registrations.pl social_data delete_patrons.pl staticfines.pl delete_unverified_opac_registrations.pl thirdparty fines.pl update_totalissues.pl gather_print_notices.pl ------------------------------------------------------------------------------------------------------------------------------------------ I just want to run automatically anything that needs to be done to keep koha up to date.
Thanks
Phillip
From: mtompset@hotmail.com To: pponchot@live.com CC: koha@lists.katipo.co.nz Subject: Re: [Koha] Crontab - is that one tabs used to open beer cans? Date: Mon, 7 Jul 2014 14:00:19 -0400
Greetings,
First, you still did not specify if you were doing a package installation or a source-based installation. Which are you doing? If a source-based installation, then your hacked up solution is passable, though not optimal.
Second, let's reply to your points:
There is a "systems" crontab which ubuntu warns not to change.
You can create crontab jobs at the system level without modifying existing ones. Every file placed in the appropriate cron.* directory is its own crontab file.
The crontab on the old server is sudo crotab -uroot -e where all the koha cronjobs are setup.
This is a user crontab still. Was the old system a source-based installation or was it a packages based installation? If you are finding user crontabs, then it likely was a source-based installation. Why do you need to have the new system as a source-based install? A package-based installation sets up all the crontab jobs you need by default for you already. No crontab job tweaks required.
Seriously, please consider a packages based installation: http://wiki.koha-community.org/wiki/Koha_on_ubuntu_-_packages
And thirdly and lastly, did you actually go looking for crontab jobs manually? Like the following done on a package installation of Koha that we are using in production.
$ cd /etc/cron.d $ ls -la total 20 drwxr-xr-x 2 root root 4096 Feb 11 17:29 . drwxr-xr-x 98 root root 4096 Jul 7 17:39 .. -rw-r--r-- 1 root root 422 Nov 22 2013 koha-common -rw-r--r-- 1 root root 102 Jun 19 2012 .placeholder -rw-r--r-- 1 root root 396 Dec 16 2011 sysstat $ cat koha-common # /etc/cron.d/koha-common # # Call koha-rebuild-zebra for each enabled Koha instance, to make sure the # Zebra indexes are up to date.
SHELL=/bin/sh PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
*/5 * * * * root test -x /usr/sbin/koha-rebuild-zebra && koha-rebuild-zebra -q $(koha-list --enabled) */15 * * * * root koha-foreach --enabled --email /usr/share/koha/bin/cronjobs/process_message_queue.pl $ cd ../cron.daily $ ls -la total 84 drwxr-xr-x 2 root root 4096 Jun 25 11:55 . drwxr-xr-x 98 root root 4096 Jul 7 17:39 .. -rwxr-xr-x 1 root root 633 Jul 12 2013 apache2 -rwxr-xr-x 1 root root 219 Apr 10 2012 apport -rwxr-xr-x 1 root root 15399 Jul 16 2013 apt -rwxr-xr-x 1 root root 314 Apr 18 2013 aptitude -rwxr-xr-x 1 root root 502 Mar 31 2012 bsdmainutils -rwxr-xr-x 1 root root 256 Jan 7 2013 dpkg -rwxr-xr-x 1 root root 1410 Nov 22 2013 koha-common -rwxr-xr-x 1 root root 372 Oct 4 2011 logrotate -rwxr-xr-x 1 root root 1365 Dec 28 2012 man-db -rwxr-xr-x 1 root root 606 Aug 17 2011 mlocate -rwxr-xr-x 1 root root 249 Sep 12 2012 passwd -rw-r--r-- 1 root root 102 Jun 19 2012 .placeholder -rwxr-xr-x 1 root root 2417 Jul 1 2011 popularity-contest -rwxr-xr-x 1 root root 2947 Jun 19 2012 standard -rwxr-xr-x 1 root root 469 Dec 16 2011 sysstat -rwxr-xr-x 1 root root 214 Sep 10 2012 update-notifier-common $ cat koha-common #!/bin/sh # /etc/cron.daily/koha-common -- Daily housekeeping tasks for all Kohas. # Copyright 2010 Catalyst IT, Ltd # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>.
koha-foreach --enabled --email /usr/share/koha/bin/cronjobs/overdue_noticest koha-foreach --enabled /usr/share/koha/bin/cronjobs/fines.pl koha-foreach --enabled --email /usr/share/koha/bin/cronjobs/advance_noticesc koha-foreach --enabled /usr/share/koha/bin/cronjobs/holds/cancel_expired_hol
/dev/null 2>&1 koha-foreach --enabled /usr/share/koha/bin/cronjobs/services_throttle.pl > null 2>&1 koha-foreach --enabled /usr/share/koha/bin/cronjobs/cleanup_database.pl --sns --zebraqueue 10 koha-foreach --enabled --noemail /usr/share/koha/bin/cronjobs/cleanup_databl --mail koha-run-backups --days 2 --output /var/spool/koha $ cd ../cron.hourly $ ls -la total 16 drwxr-xr-x 2 root root 4096 Feb 11 17:29 . drwxr-xr-x 98 root root 4096 Jul 7 17:39 .. -rwxr-xr-x 1 root root 840 Nov 22 2013 koha-common -rw-r--r-- 1 root root 102 Jun 19 2012 .placeholder $ cat koha-common #!/bin/sh # /etc/cron.hourly/koha-common -- Hourly housekeeping tasks for all Kohas. # Copyright 2010 Catalyst IT, Ltd # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>.
koha-foreach --enabled /usr/share/koha/bin/cronjobs/holds/build_holds_queue.pl
And checking out cron.monthly and cron.weekly failed to find a koha-common file.
And by the way, running a zebra process twice for the same instance is a bad thing to do. So please check /etc/cron.* before you use what was suggested by Vashil Patil.
GPML, Mark Tompsett
-----Original Message----- From: Phillip Ponchot Sent: Monday, July 07, 2014 1:21 PM To: Robin Sheat Cc: koha@lists.katipo.co.nz Subject: Re: [Koha] Crontab - is that one tabs used to open beer cans?
There is a "systems" crontab which ubuntu warns not to change. The crontab on the old server is sudo crotab -uroot -e where all the koha cronjobs are setup. When I run this command on the new server there's info about the crontab but there are no jobs in the crontab so I guess I'll have to create them to get koha to run properly.
Thanks for your help. Phillip
From: robin@catalyst.net.nz To: koha@lists.katipo.co.nz Date: Mon, 7 Jul 2014 16:14:40 +1200 Subject: Re: [Koha] Crontab - is that one tabs used to open beer cans?
Thank you so much. Its easier to use one that is already built
Phillip Ponchot schreef op zo 06-07-2014 om 21:09 [-0700]: than
to spend hours trying to build the crontab. I appreciate you're sharing. Phillip
Go with what Mark said to start with: you're viewing the user crontab when you use crontab -e, and that's most likely not what you want.
The Koha-specific one lives in /etc/crontab or as a file within /etc/crontab.d.
-- Robin Sheat Catalyst IT Ltd. ✆ +64 4 803 2204 GPG: 5FA7 4B49 1E4D CAA4 4C38 8505 77F5 B724 F871 3BDF
_______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
_______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
_______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
-- Sent from my Android device with K-9 Mail. Please excuse my brevity.
+1 El jul 7, 2014 4:57 PM, "Chris Cormack" <chrisc@catalyst.net.nz> escribió:
Don't touch anything. Seriously.
If you have a packaged install, it's all been done. Look in cron.d, cron.daily etc all the jobs have been set up.
Chris
On 8 July 2014 7:17:29 am NZST, Phillip Ponchot <pponchot@live.com> wrote:
The old koha was installed as a tarball on the old server so I believe this makes it a source-based. The new koha was installed via a repository. apt-get install koha-common.
I did find in /etc/cron.d a koha-common file. The contents of this file was:
------------------------------------------------------------------------------------------------------------------------------------------------------- # /etc/cron.d/koha-common # # Call koha-rebuild-zebra for each enabled Koha instance, to make sure the # Zebra indexes are up to date.
SHELL=/bin/sh PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
*/5 * * * * root test -x /usr/sbin/koha-rebuild-zebra && koha-rebuild-zebra -q $(koha-list --enabled) */15 * * * * root koha-foreach --enabled --email /usr/share/koha/bin/cronjobs/process_message_queue.pl
----------------------------------------------------------------------------------------------------------------------------------------------------- also there is a directory in /user/share/koha/bin/cronjobs - are these run by the koha program or do I have to schedule them in a crontab job?
------------------------------------------------------------------------------------------------------------------------------------------------------------ advance_notices.pl holds backup.sh import_webservice_batch.pl batch_anonymise.pl j2a.pl build_browser_and_cloud.pl longoverdue.pl cart_to_shelf.pl MARC21_parse_test.pl check-url.pl overdue_notices.pl check-url-quick.pl printoverdues.sh cleanup_database.pl process_message_queue.pl cloud-kw.pl purge_suggestions.pl cloud-sample.conf rss CONFIGURE.gmail runreport.pl create_koc_db.pl serialsUpdate.pl crontab.example services_throttle.pl delete_expired_opac_registrations.pl social_data delete_patrons.pl staticfines.pl delete_unverified_opac_registrations.pl thirdparty fines.pl update_totalissues.pl gather_print_notices.pl
------------------------------------------------------------------------------------------------------------------------------------------ I just want to run automatically anything that needs to be done to keep koha up to date.
Thanks
Phillip
From: mtompset@hotmail.com To: pponchot@live.com CC: koha@lists.katipo.co.nz Subject: Re: [Koha] Crontab - is that one tabs used to open beer cans? Date: Mon, 7 Jul 2014 14:00:19 -0400
Greetings,
First, you still did not specify if you were doing a package installation or a source-based installation. Which are you doing? If a source-based installation, then your hacked up solution is passable, though not optimal.
Second, let's reply to your points:
There is a "systems" crontab which ubuntu warns not to change.
You can create crontab jobs at the system level without modifying existing ones. Every file placed in the appropriate cron.* directory is its own crontab file.
The crontab on the old server is sudo crotab -uroot -e where all the koha cronjobs are setup.
This is a user crontab still. Was the old system a source-based installation or was it a packages based installation? If you are finding user crontabs, then it likely was a source-based installation. Why do you need to have the new system as a source-based install? A package-based installation sets up all the crontab jobs you need by default for you already. No crontab job tweaks required.
Seriously, please consider a packages based installation: http://wiki.koha-community.org/wiki/Koha_on_ubuntu_-_packages
And thirdly and lastly, did you actually go looking for crontab jobs manually? Like the following done on a package installation of Koha that we are using in production.
$ cd /etc/cron.d $ ls -la total 20 drwxr-xr-x 2 root root 4096 Feb 11 17:29 . drwxr-xr-x 98 root root 4096 Jul 7 17:39 .. -rw-r--r-- 1 root root 422 Nov 22 2013 koha-common -rw-r--r-- 1 root root 102 Jun 19 2012 .placeholder -rw-r--r-- 1 root root 396 Dec 16 2011 sysstat $ cat koha-common # /etc/cron.d/koha-common # # Call koha-rebuild-zebra for each enabled Koha instance, to make sure the # Zebra indexes are up to date.
SHELL=/bin/sh PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
*/5 * * * * root test -x /usr/sbin/koha-rebuild-zebra && koha-rebuild-zebra -q $(koha-list --enabled) */15 * * * * root koha-foreach --enabled --email /usr/share/koha/bin/cronjobs/process_message_queue.pl $ cd ../cron.daily $ ls -la total 84 drwxr-xr-x 2 root root 4096 Jun 25 11:55 . drwxr-xr-x 98 root root 4096 Jul 7 17:39 .. -rwxr-xr-x 1 root root 633 Jul 12 2013 apache2 -rwxr-xr-x 1 root root 219 Apr 10 2012 apport -rwxr-xr-x 1 root root 15399 Jul 16 2013 apt -rwxr-xr-x 1 root root 314 Apr 18 2013 aptitude -rwxr-xr-x 1 root root 502 Mar 31 2012 bsdmainutils -rwxr-xr-x 1 root root 256 Jan 7 2013 dpkg -rwxr-xr-x 1 root root 1410 Nov 22 2013 koha-common -rwxr-xr-x 1 root root 372 Oct 4 2011 logrotate -rwxr-xr-x 1 root root 1365 Dec 28 2012 man-db -rwxr-xr-x 1 root root 606 Aug 17 2011 mlocate -rwxr-xr-x 1 root root 249 Sep 12 2012 passwd -rw-r--r-- 1 root root 102 Jun 19 2012 .placeholder -rwxr-xr-x 1 root root 2417 Jul 1 2011 popularity-contest -rwxr-xr-x 1 root root 2947 Jun 19 2012 standard -rwxr-xr-x 1 root root 469 Dec 16 2011 sysstat -rwxr-xr-x 1 root root 214 Sep 10 2012 update-notifier-common $ cat koha-common #!/bin/sh # /etc/cron.daily/koha-common -- Daily housekeeping tasks for all Kohas. # Copyright 2010 Catalyst IT, Ltd # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>.
koha-foreach --enabled --email /usr/share/koha/bin/cronjobs/overdue_noticest koha-foreach --enabled /usr/share/koha/bin/cronjobs/fines.pl koha-foreach --enabled --email /usr/share/koha/bin/cronjobs/advance_noticesc koha-foreach --enabled /usr/share/koha/bin/cronjobs/holds/cancel_expired_hol
/dev/null 2>&1 koha-foreach --enabled /usr/share/koha/bin/cronjobs/services_throttle.pl > null 2>&1 koha-foreach --enabled /usr/share/koha/bin/cronjobs/cleanup_database.pl --sns --zebraqueue 10 koha-foreach --enabled --noemail /usr/share/koha/bin/cronjobs/cleanup_databl --mail koha-run-backups --days 2 --output /var/spool/koha $ cd ../cron.hourly $ ls -la total 16 drwxr-xr-x 2 root root 4096 Feb 11 17:29 . drwxr-xr-x 98 root root 4096 Jul 7 17:39 .. -rwxr-xr-x 1 root root 840 Nov 22 2013 koha-common -rw-r--r-- 1 root root 102 Jun 19 2012 .placeholder $ cat koha-common #!/bin/sh # /etc/cron.hourly/koha-common -- Hourly housekeeping tasks for all Kohas. # Copyright 2010 Catalyst IT, Ltd # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>.
koha-foreach --enabled /usr/share/koha/bin/cronjobs/holds/build_holds_queue.pl
And checking out cron.monthly and cron.weekly failed to find a koha-common file.
And by the way, running a zebra process twice for the same instance is a bad thing to do. So please check /etc/cron.* before you use what was suggested by Vashil Patil.
GPML, Mark Tompsett
-----Original Message----- From: Phillip Ponchot Sent: Monday, July 07, 2014 1:21 PM To: Robin Sheat Cc: koha@lists.katipo.co.nz Subject: Re: [Koha] Crontab - is that one tabs used to open beer cans?
There is a "systems" crontab which ubuntu warns not to change. The crontab on the old server is sudo crotab -uroot -e where all the koha cronjobs are setup. When I run this command on the new server there's info about the crontab but there are no jobs in the crontab so I guess I'll have to create them to get koha to run properly.
Thanks for your help. Phillip
From: robin@catalyst.net.nz To: koha@lists.katipo.co.nz Date: Mon, 7 Jul 2014 16:14:40 +1200 Subject: Re: [Koha] Crontab - is that one tabs used to open beer cans?
Thank you so much. Its easier to use one that is already built
Phillip Ponchot schreef op zo 06-07-2014 om 21:09 [-0700]: than
to spend hours trying to build the crontab. I appreciate you're sharing. Phillip
Go with what Mark said to start with: you're viewing the user crontab when you use crontab -e, and that's most likely not what you want.
The Koha-specific one lives in /etc/crontab or as a file within /etc/crontab.d.
-- Robin Sheat Catalyst IT Ltd. ✆ +64 4 803 2204 GPG: 5FA7 4B49 1E4D CAA4 4C38 8505 77F5 B724 F871 3BDF
_______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
_______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
_______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
-- Sent from my Android device with K-9 Mail. Please excuse my brevity. _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Thanks for sticking with me. Sometimes I can be a little dense. I see the koha jobs in cron.daily and realize based on the info that you've given me that I don't have to setup the cron jobs. I'm a little relieved that I don't - smile. Thanks everyone for your help. Thank you especially Tomas. Phillip Date: Mon, 7 Jul 2014 17:45:32 -0300 Subject: Re: [Koha] Crontab - is that one tabs used to open beer cans? From: tomascohen@gmail.com To: chrisc@catalyst.net.nz CC: koha@lists.katipo.co.nz; pponchot@live.com; mtompset@hotmail.com +1 El jul 7, 2014 4:57 PM, "Chris Cormack" <chrisc@catalyst.net.nz> escribió: Don't touch anything. Seriously. If you have a packaged install, it's all been done. Look in cron.d, cron.daily etc all the jobs have been set up. Chris On 8 July 2014 7:17:29 am NZST, Phillip Ponchot <pponchot@live.com> wrote:
The old koha was installed as a tarball on the old server so I believe
this makes it a source-based. The new koha was installed via a
repository. apt-get install koha-common.
I did find in /etc/cron.d a koha-common file. The contents of this
file was:
-------------------------------------------------------------------------------------------------------------------------------------------------------
# /etc/cron.d/koha-common
#
# Call koha-rebuild-zebra for each enabled Koha instance, to make sure
the
# Zebra indexes are up to date.
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
*/5 * * * * root test -x /usr/sbin/koha-rebuild-zebra &&
koha-rebuild-zebra -q $(koha-list --enabled)
*/15 * * * * root koha-foreach --enabled --email
/usr/share/koha/bin/cronjobs/process_message_queue.pl
-----------------------------------------------------------------------------------------------------------------------------------------------------
also there is a directory in /user/share/koha/bin/cronjobs - are these
run by the koha program or do I have to schedule them in a crontab job?
------------------------------------------------------------------------------------------------------------------------------------------------------------
advance_notices.pl holds
backup.sh
import_webservice_batch.pl
batch_anonymise.pl j2a.pl
build_browser_and_cloud.pl longoverdue.pl
cart_to_shelf.pl MARC21_parse_test.pl
check-url.pl overdue_notices.pl
check-url-quick.pl printoverdues.sh
cleanup_database.pl process_message_queue.pl
cloud-kw.pl purge_suggestions.pl
cloud-sample.conf rss
CONFIGURE.gmail runreport.pl
create_koc_db.pl serialsUpdate.pl
crontab.example services_throttle.pl
delete_expired_opac_registrations.pl social_data
delete_patrons.pl staticfines.pl
delete_unverified_opac_registrations.pl thirdparty
fines.pl update_totalissues.pl
gather_print_notices.pl
------------------------------------------------------------------------------------------------------------------------------------------
I just want to run automatically anything that needs to be done to keep
koha up to date.
Thanks
Phillip
From: mtompset@hotmail.com
To: pponchot@live.com
CC: koha@lists.katipo.co.nz
Subject: Re: [Koha] Crontab - is that one tabs used to open beer
cans?
Date: Mon, 7 Jul 2014 14:00:19 -0400
Greetings,
First, you still did not specify if you were doing a package
installation or
a source-based installation. Which are you doing? If a source-based
installation, then your hacked up solution is passable, though not
optimal.
Second, let's reply to your points:
There is a "systems" crontab which ubuntu warns not to change.
You can create crontab jobs at the system level without modifying
existing
ones. Every file placed in the appropriate cron.* directory is its
own
crontab file.
The crontab on the old server is sudo crotab -uroot -e where all
the koha
cronjobs are setup.
This is a user crontab still. Was the old system a source-based
installation
or was it a packages based installation? If you are finding user
crontabs,
then it likely was a source-based installation. Why do you need to
have the
new system as a source-based install? A package-based installation
sets up
all the crontab jobs you need by default for you already. No crontab
job
tweaks required.
Seriously, please consider a packages based installation:
http://wiki.koha-community.org/wiki/Koha_on_ubuntu_-_packages
And thirdly and lastly, did you actually go looking for crontab jobs
manually? Like the following done on a package installation of Koha
that we
are using in production.
$ cd /etc/cron.d
$ ls -la
total 20
drwxr-xr-x 2 root root 4096 Feb 11 17:29 .
drwxr-xr-x 98 root root 4096 Jul 7 17:39 ..
-rw-r--r-- 1 root root 422 Nov 22 2013 koha-common
-rw-r--r-- 1 root root 102 Jun 19 2012 .placeholder
-rw-r--r-- 1 root root 396 Dec 16 2011 sysstat
$ cat koha-common
# /etc/cron.d/koha-common
#
# Call koha-rebuild-zebra for each enabled Koha instance, to make
sure the
# Zebra indexes are up to date.
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
*/5 * * * * root test -x /usr/sbin/koha-rebuild-zebra &&
koha-rebuild-zebra -q $(koha-list --enabled)
*/15 * * * * root koha-foreach --enabled --email
/usr/share/koha/bin/cronjobs/process_message_queue.pl
$ cd ../cron.daily
$ ls -la
total 84
drwxr-xr-x 2 root root 4096 Jun 25 11:55 .
drwxr-xr-x 98 root root 4096 Jul 7 17:39 ..
-rwxr-xr-x 1 root root 633 Jul 12 2013 apache2
-rwxr-xr-x 1 root root 219 Apr 10 2012 apport
-rwxr-xr-x 1 root root 15399 Jul 16 2013 apt
-rwxr-xr-x 1 root root 314 Apr 18 2013 aptitude
-rwxr-xr-x 1 root root 502 Mar 31 2012 bsdmainutils
-rwxr-xr-x 1 root root 256 Jan 7 2013 dpkg
-rwxr-xr-x 1 root root 1410 Nov 22 2013 koha-common
-rwxr-xr-x 1 root root 372 Oct 4 2011 logrotate
-rwxr-xr-x 1 root root 1365 Dec 28 2012 man-db
-rwxr-xr-x 1 root root 606 Aug 17 2011 mlocate
-rwxr-xr-x 1 root root 249 Sep 12 2012 passwd
-rw-r--r-- 1 root root 102 Jun 19 2012 .placeholder
-rwxr-xr-x 1 root root 2417 Jul 1 2011 popularity-contest
-rwxr-xr-x 1 root root 2947 Jun 19 2012 standard
-rwxr-xr-x 1 root root 469 Dec 16 2011 sysstat
-rwxr-xr-x 1 root root 214 Sep 10 2012 update-notifier-common
$ cat koha-common
#!/bin/sh
# /etc/cron.daily/koha-common -- Daily housekeeping tasks for all
Kohas.
# Copyright 2010 Catalyst IT, Ltd
#
# This program is free software: you can redistribute it and/or
modify
# it under the terms of the GNU General Public License as published
by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see
koha-foreach --enabled --email
/usr/share/koha/bin/cronjobs/overdue_noticest
koha-foreach --enabled /usr/share/koha/bin/cronjobs/fines.pl
koha-foreach --enabled --email
/usr/share/koha/bin/cronjobs/advance_noticesc
koha-foreach --enabled
/usr/share/koha/bin/cronjobs/holds/cancel_expired_hol
/dev/null 2>&1
koha-foreach --enabled
/usr/share/koha/bin/cronjobs/services_throttle.pl >
null 2>&1
koha-foreach --enabled
/usr/share/koha/bin/cronjobs/cleanup_database.pl --sns --zebraqueue
10
koha-foreach --enabled --noemail
/usr/share/koha/bin/cronjobs/cleanup_databl --mail
koha-run-backups --days 2 --output /var/spool/koha
$ cd ../cron.hourly
$ ls -la
total 16
drwxr-xr-x 2 root root 4096 Feb 11 17:29 .
drwxr-xr-x 98 root root 4096 Jul 7 17:39 ..
-rwxr-xr-x 1 root root 840 Nov 22 2013 koha-common
-rw-r--r-- 1 root root 102 Jun 19 2012 .placeholder
$ cat koha-common
#!/bin/sh
# /etc/cron.hourly/koha-common -- Hourly housekeeping tasks for all
Kohas.
# Copyright 2010 Catalyst IT, Ltd
#
# This program is free software: you can redistribute it and/or
modify
# it under the terms of the GNU General Public License as published
by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see
koha-foreach --enabled
/usr/share/koha/bin/cronjobs/holds/build_holds_queue.pl
And checking out cron.monthly and cron.weekly failed to find a
koha-common
file.
And by the way, running a zebra process twice for the same instance
is a bad
thing to do. So please check /etc/cron.* before you use what was
suggested
by Vashil Patil.
GPML,
Mark Tompsett
-----Original Message-----
From: Phillip Ponchot
Sent: Monday, July 07, 2014 1:21 PM
To: Robin Sheat
Cc: koha@lists.katipo.co.nz
Subject: Re: [Koha] Crontab - is that one tabs used to open beer
cans?
There is a "systems" crontab which ubuntu warns not to change. The
crontab
on the old server is sudo crotab -uroot -e where all the koha
cronjobs are
setup. When I run this command on the new server there's info about
the
crontab but there are no jobs in the crontab so I guess I'll have to
create
them to get koha to run properly.
Thanks for your help. Phillip
From: robin@catalyst.net.nz
To: koha@lists.katipo.co.nz
Date: Mon, 7 Jul 2014 16:14:40 +1200
Subject: Re: [Koha] Crontab - is that one tabs used to open beer
cans?
Phillip Ponchot schreef op zo 06-07-2014 om 21:09 [-0700]:
Thank you so much. Its easier to use one that is already built
than
to spend hours trying to build the crontab. I appreciate you're
sharing. Phillip
Go with what Mark said to start with: you're viewing the user
crontab
when you use crontab -e, and that's most likely not what you want.
The Koha-specific one lives in /etc/crontab or as a file
within /etc/crontab.d.
--
Robin Sheat
Catalyst IT Ltd.
✆ +64 4 803 2204
GPG: 5FA7 4B49 1E4D CAA4 4C38 8505 77F5 B724 F871 3BDF
_______________________________________________
Koha mailing list http://koha-community.org
Koha@lists.katipo.co.nz
_______________________________________________
Koha mailing list http://koha-community.org
Koha@lists.katipo.co.nz
_______________________________________________
Koha mailing list http://koha-community.org
Koha@lists.katipo.co.nz
-- Sent from my Android device with K-9 Mail. Please excuse my brevity. _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Greetings, Chris Cormack wrote:
Don't touch anything. Seriously.
If you have a packaged install, it's all been done. Look in cron.d, cron.daily etc all the jobs have been set up.
Yet another wonderful reason to not even be tinkering with crontab jobs. +1 for package installations. +1 for not having to touch crontab jobs. +1 for confirmation of this awesomeness. +2 cents to round to the nearest nickel, because pennies are out of circulation in Canada now. ;) GPML, Mark Tompsett
I've got the big picture now. I see where the koha crontab jobs are setup. Thanks so much for your help. Phillip
From: mtompset@hotmail.com To: koha@lists.katipo.co.nz Date: Mon, 7 Jul 2014 17:14:57 -0400 Subject: Re: [Koha] Crontab - is that one tabs used to open beer cans?
Greetings,
Chris Cormack wrote:
Don't touch anything. Seriously.
If you have a packaged install, it's all been done. Look in cron.d, cron.daily etc all the jobs have been set up.
Yet another wonderful reason to not even be tinkering with crontab jobs.
+1 for package installations. +1 for not having to touch crontab jobs. +1 for confirmation of this awesomeness. +2 cents to round to the nearest nickel, because pennies are out of circulation in Canada now. ;)
GPML, Mark Tompsett
_______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Ok, I see where the jobs are. I didn't understand that there was a difference between a source install and a package install. In some of the 3.14 documentation there is a chapter on cronjobs and how to set them up. Now i understand that these particular documents must be mean for the source installs. Personally, I'm a little relieved that I don't have to build the cronjob for Koha. Thanks to everyone for the help. Hang in there, Phillip Subject: Re: [Koha] Crontab - is that one tabs used to open beer cans? From: chrisc@catalyst.net.nz Date: Tue, 8 Jul 2014 07:56:30 +1200 To: pponchot@live.com; mtompset@hotmail.com CC: koha@lists.katipo.co.nz Don't touch anything. Seriously. If you have a packaged install, it's all been done. Look in cron.d, cron.daily etc all the jobs have been set up. Chris On 8 July 2014 7:17:29 am NZST, Phillip Ponchot <pponchot@live.com> wrote: The old koha was installed as a tarball on the old server so I believe this makes it a source-based. The new koha was installed via a repository. apt-get install koha-common. I did find in /etc/cron.d a koha-common file. The contents of this file was: # /etc/cron.d/koha-common # # Call koha-rebuild-zebra for each enabled Koha instance, to make sure the # Zebra indexes are up to date. SHELL=/bin/sh PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin */5 * * * * root test -x /usr/sbin/koha-rebuild-zebra && koha-rebuild-zebra -q $(koha-list --enabled) */15 * * * * root koha-foreach --enabled --email /usr/share/koha/bin/cronjobs/process_message_queue.pl also there is a directory in /user/share/koha/bin/cronjobs - are these run by the koha program or do I have to schedule them in a crontab job? advance_notices.pl holds backup.sh import_webservice_batch.pl batch_anonymise.pl j2a.pl build_browser_and_cloud.pl longoverdue.pl cart_to_shelf.pl MARC21_parse_test.pl check-url.pl overdue_notices.pl check-url-quick.pl printoverdues.sh cleanup_database.pl process_message_queue.pl cloud-kw.pl purge_suggestions.pl cloud-sample.conf rss CONFIGURE.gmail runreport.pl create_koc_db.pl serialsUpdate.pl crontab.example services_throttle.pl delete_expired_opac_registrations.pl social_data delete_patrons.pl staticfines.pl delete_unverified_opac_registrations.pl thirdparty fines.pl update_totalissues.pl gather_print_notices.pl I just want to run automatically anything that needs to be done to keep koha up to date. Thanks Phillip From: mtompset@hotmail.com To: pponchot@live.com CC: koha@lists.katipo.co.nz Subject: Re: [Koha] Crontab - is that one tabs used to open beer cans? Date: Mon, 7 Jul 2014 14:00:19 -0400 Greetings, First, you still did not specify if you were doing a package installation or a source-based installation. Which are you doing? If a source-based installation, then your hacked up solution is passable, though not optimal. Second, let's reply to your points: There is a "syste ms" crontab which ubuntu warns not to change. You can create crontab jobs at the system level without modifying existing ones. Every file placed in the appropriate cron.* directory is its own crontab file. The crontab on the old server is sudo crotab -uroot -e where all the koha cronjobs are setup. This is a user crontab still. Was the old system a source-based installation or was it a packages based installation? If you are finding user crontabs, then it likely was a source-based installation. Why do you need to have the new system as a source-based install? A package-based installation sets up all the crontab jobs you need by default for you already. No crontab job tweaks required. Seriously, please consider a packages base d installation: http://wiki.koha-community.org/wiki/Koha_on_ubuntu_-_packages And thirdly and lastly, did you actually go looking for crontab jobs manually? Like the following done on a package installation of Koha that we are using in production. $ cd /etc/cron.d $ ls -la total 20 drwxr-xr-x 2 root root 4096 Feb 11 17:29 . drwxr-xr-x 98 root root 4096 Jul 7 17:39 .. -rw-r--r-- 1 root root 422 Nov 22 2013 koha-common -rw-r--r-- 1 root root 102 Jun 19 2012 .placeholder -rw-r--r-- 1 root root 396 Dec 16 2011 sysstat $ cat koha-common # /etc/cron.d/koha-common # # Call koha-rebuild-zebra for each enabled Koha instance, to make sure the # Zebra indexes are up to date. SHELL=/bin/sh PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin */5 * * * * root test -x /usr/sbin/koha-rebuild-zebra && koha-rebuild-zebra -q $(koha-list --enabled) */15 * * * * root koha-foreach --enabled --email /usr/share/koha/bin/cronjobs/process_message_queue.pl $ cd ../cron.daily $ ls -la total 84 drwxr-xr-x 2 root root 4096 Jun 25 11:55 . drwxr-xr-x 98 root root 4096 Jul 7 17:39 .. -rwxr-xr-x 1 root root 633 Jul 12 2013 apache2 -rwxr-xr-x 1 root root 219 Apr 10 2012 apport -rwxr-xr-x 1 root root 15399 Jul 16 2013 apt -rwxr-xr-x 1 root root 314 Apr 18 2013 aptitude -rwxr-xr-x 1 root root 502 Mar 31 2012 bsdmainutils -rwxr-xr-x 1 root root 256 Jan 7 2013 dpkg -rwxr-xr-x 1 root root 1410 Nov 22 2013 koha-common -rwxr-xr-x 1 root root 372 Oct 4 2011 logrotate -rwxr-xr-x 1 root root 1365 Dec 28 2012 man-db -rwxr-xr-x 1 root root 606 Aug 17 2011 mloc ate -rwxr-xr-x 1 root root 249 Sep 12 2012 passwd -rw-r--r-- 1 root root 102 Jun 19 2012 .placeholder -rwxr-xr-x 1 root root 2417 Jul 1 2011 popularity-contest -rwxr-xr-x 1 root root 2947 Jun 19 2012 standard -rwxr-xr-x 1 root root 469 Dec 16 2011 sysstat -rwxr-xr-x 1 root root 214 Sep 10 2012 update-notifier-common $ cat koha-common #!/bin/sh # /etc/cron.daily/koha-common -- Daily housekeeping tasks for all Kohas. # Copyright 2010 Catalyst IT, Ltd # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FI TNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. koha-foreach --enabled --email /usr/share/koha/bin/cronjobs/overdue_noticest koha-foreach --enabled /usr/share/koha/bin/cronjobs/fines.pl koha-foreach --enabled --email /usr/share/koha/bin/cronjobs/advance_noticesc koha-foreach --enabled /usr/share/koha/bin/cronjobs/holds/cancel_expired_hol /dev/null 2>&1 koha-foreach --enabled /usr/share/koha/bin/cronjobs/services_throttle.pl > null 2>&1 koha-foreach --enabled /usr/share/koha/bin/cronjobs/cleanup_database.pl --sns --zebraqueue 10 koha-foreach --enabled --noemail /usr/share/koha/bin/cronjobs/cleanup_databl --mail koha-run-backups --days 2 --output /var/spool/koha $ cd ../cron.hourly $ ls -la total 16 drwxr-xr-x 2 root root 4096 Feb 11 17:29 . drwxr-xr-x 98 root root 4096 Jul 7 17:39 .. -rwxr-xr-x 1 root root 840 Nov 22 2013 koha-common -rw-r--r-- 1 root root 102 Jun 19 2012 .placeholder $ cat koha-common #!/bin/sh # /etc/cron.hourly/koha-common -- Hourly housekeeping tasks for all Kohas. # Copyright 2010 Catalyst IT, Ltd # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. koha-foreach --enabled /usr/share/koha/bin/cronjobs/holds/build_holds_queue.pl And checking out cron.monthly and cron.weekly failed to find a koha-common file. And by the way, running a zebra process twice for the same instance is a bad thing to do. So please check /etc/cron.* before you use what was suggested by Vashil Patil. GPML, Mark Tompsett -----Original Message----- From: Phillip Ponchot Sent: Monday, July 07, 2014 1:21 PM To: Robin Sheat Cc: koha@lists.katipo.co.nz Subject: Re: [Koha] Crontab - is that one tabs used to open beer cans? There is a "systems" crontab which ubuntu warns not to change. The crontab on the old server is sudo crotab -uroot -e where all the koha cronjobs are setup. When I run this command on the new server there's info about the crontab but there are no jobs in the crontab so I guess I'll have to create them to get koha to run properly. Thanks for your help. Phillip From: robin@catalyst.net.nz To: koha@lists.katipo.co.nz Date: Mon, 7 Jul 2014 16:14:40 +1200 Subject: Re: [Koha] Crontab - is that one tabs used to open beer cans? Phillip Ponchot schreef op zo 06-07-2014 om 21:09 [-070 0]: Thank you so much. Its easier to use one that is already built than to spend hours trying to build the crontab. I appreciate you're sharing. Phillip Go with what Mark said to start with: you're viewing the user crontab when you use crontab -e, and that's most likely not what you want. The Koha-specific one lives in /etc/crontab or as a file within /etc/crontab.d. -- Robin Sheat Catalyst IT Ltd. ✆ +64 4 803 2204 GPG: 5FA7 4B49 1E4D CAA4 4C38 8505 77F5 B724 F871 3BDF Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha Ko ha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha -- Sent from my Android device with K-9 Mail. Please excuse my brevity.
Some work on making both install methods converge is in the oven right now :-D On Mon, Jul 7, 2014 at 6:24 PM, Phillip Ponchot <pponchot@live.com> wrote:
Ok, I see where the jobs are. I didn't understand that there was a difference between a source install and a package install.
In some of the 3.14 documentation there is a chapter on cronjobs and how to set them up. Now i understand that these particular documents must be mean for the source installs.
Personally, I'm a little relieved that I don't have to build the cronjob for Koha.
Thanks to everyone for the help.
Hang in there,
Phillip
Subject: Re: [Koha] Crontab - is that one tabs used to open beer cans? From: chrisc@catalyst.net.nz Date: Tue, 8 Jul 2014 07:56:30 +1200 To: pponchot@live.com; mtompset@hotmail.com CC: koha@lists.katipo.co.nz
Don't touch anything. Seriously.
If you have a packaged install, it's all been done. Look in cron.d, cron.daily etc all the jobs have been set up.
Chris
On 8 July 2014 7:17:29 am NZST, Phillip Ponchot <pponchot@live.com> wrote: The old koha was installed as a tarball on the old server so I believe this makes it a source-based. The new koha was installed via a repository. apt-get install koha-common.
I did find in /etc/cron.d a koha-common file. The contents of this file was:
# /etc/cron.d/koha-common # # Call koha-rebuild-zebra for each enabled Koha instance, to make sure the # Zebra indexes are up to date.
SHELL=/bin/sh PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
*/5 * * * * root test -x /usr/sbin/koha-rebuild-zebra && koha-rebuild-zebra -q $(koha-list --enabled) */15 * * * * root koha-foreach --enabled --email /usr/share/koha/bin/cronjobs/process_message_queue.pl
also there is a directory in /user/share/koha/bin/cronjobs - are these run by the koha program or do I have to schedule them in a crontab job?
advance_notices.pl holds backup.sh import_webservice_batch.pl batch_anonymise.pl j2a.pl build_browser_and_cloud.pl longoverdue.pl cart_to_shelf.pl MARC21_parse_test.pl check-url.pl overdue_notices.pl check-url-quick.pl printoverdues.sh cleanup_database.pl process_message_queue.pl cloud-kw.pl purge_suggestions.pl cloud-sample.conf rss CONFIGURE.gmail runreport.pl create_koc_db.pl serialsUpdate.pl crontab.example services_throttle.pl delete_expired_opac_registrations.pl social_data delete_patrons.pl staticfines.pl delete_unverified_opac_registrations.pl thirdparty fines.pl update_totalissues.pl gather_print_notices.pl
I just want to run automatically anything that needs to be done to keep koha up to date.
Thanks
Phillip
From: mtompset@hotmail.com To: pponchot@live.com CC: koha@lists.katipo.co.nz Subject: Re: [Koha] Crontab - is that one tabs used to open beer cans? Date: Mon, 7 Jul 2014 14:00:19 -0400
Greetings,
First, you still did not specify if you were doing a package installation or a source-based installation. Which are you doing? If a source-based installation, then your hacked up solution is passable, though not optimal.
Second, let's reply to your points: There is a "syste ms" crontab which ubuntu warns not to change.
You can create crontab jobs at the system level without modifying existing ones. Every file placed in the appropriate cron.* directory is its own crontab file.
The crontab on the old server is sudo crotab -uroot -e where all the koha cronjobs are setup.
This is a user crontab still. Was the old system a source-based installation or was it a packages based installation? If you are finding user crontabs, then it likely was a source-based installation. Why do you need to have the new system as a source-based install? A package-based installation sets up all the crontab jobs you need by default for you already. No crontab job tweaks required.
Seriously, please consider a packages base d installation: http://wiki.koha-community.org/wiki/Koha_on_ubuntu_-_packages
And thirdly and lastly, did you actually go looking for crontab jobs manually? Like the following done on a package installation of Koha that we are using in production.
$ cd /etc/cron.d $ ls -la total 20 drwxr-xr-x 2 root root 4096 Feb 11 17:29 . drwxr-xr-x 98 root root 4096 Jul 7 17:39 .. -rw-r--r-- 1 root root 422 Nov 22 2013 koha-common -rw-r--r-- 1 root root 102 Jun 19 2012 .placeholder -rw-r--r-- 1 root root 396 Dec 16 2011 sysstat $ cat koha-common # /etc/cron.d/koha-common # # Call koha-rebuild-zebra for each enabled Koha instance, to make sure the # Zebra indexes are up to date.
SHELL=/bin/sh PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
*/5 * * * * root test -x /usr/sbin/koha-rebuild-zebra && koha-rebuild-zebra -q $(koha-list --enabled) */15 * * * * root koha-foreach --enabled --email /usr/share/koha/bin/cronjobs/process_message_queue.pl $ cd ../cron.daily $ ls -la total 84 drwxr-xr-x 2 root root 4096 Jun 25 11:55 . drwxr-xr-x 98 root root 4096 Jul 7 17:39 .. -rwxr-xr-x 1 root root 633 Jul 12 2013 apache2 -rwxr-xr-x 1 root root 219 Apr 10 2012 apport -rwxr-xr-x 1 root root 15399 Jul 16 2013 apt -rwxr-xr-x 1 root root 314 Apr 18 2013 aptitude -rwxr-xr-x 1 root root 502 Mar 31 2012 bsdmainutils -rwxr-xr-x 1 root root 256 Jan 7 2013 dpkg -rwxr-xr-x 1 root root 1410 Nov 22 2013 koha-common -rwxr-xr-x 1 root root 372 Oct 4 2011 logrotate -rwxr-xr-x 1 root root 1365 Dec 28 2012 man-db -rwxr-xr-x 1 root root 606 Aug 17 2011 mloc ate -rwxr-xr-x 1 root root 249 Sep 12 2012 passwd -rw-r--r-- 1 root root 102 Jun 19 2012 .placeholder -rwxr-xr-x 1 root root 2417 Jul 1 2011 popularity-contest -rwxr-xr-x 1 root root 2947 Jun 19 2012 standard -rwxr-xr-x 1 root root 469 Dec 16 2011 sysstat -rwxr-xr-x 1 root root 214 Sep 10 2012 update-notifier-common $ cat koha-common #!/bin/sh # /etc/cron.daily/koha-common -- Daily housekeeping tasks for all Kohas. # Copyright 2010 Catalyst IT, Ltd # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FI TNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>.
koha-foreach --enabled --email /usr/share/koha/bin/cronjobs/overdue_noticest koha-foreach --enabled /usr/share/koha/bin/cronjobs/fines.pl koha-foreach --enabled --email /usr/share/koha/bin/cronjobs/advance_noticesc koha-foreach --enabled /usr/share/koha/bin/cronjobs/holds/cancel_expired_hol /dev/null 2>&1 koha-foreach --enabled /usr/share/koha/bin/cronjobs/services_throttle.pl
null 2>&1 koha-foreach --enabled
/usr/share/koha/bin/cronjobs/cleanup_database.pl --sns --zebraqueue 10 koha-foreach --enabled --noemail /usr/share/koha/bin/cronjobs/cleanup_databl --mail koha-run-backups --days 2 --output /var/spool/koha $ cd ../cron.hourly $ ls -la total 16 drwxr-xr-x 2 root root 4096 Feb 11 17:29 . drwxr-xr-x 98 root root 4096 Jul 7 17:39 .. -rwxr-xr-x 1 root root 840 Nov 22 2013 koha-common -rw-r--r-- 1 root root 102 Jun 19 2012 .placeholder $ cat koha-common #!/bin/sh # /etc/cron.hourly/koha-common -- Hourly housekeeping tasks for all Kohas. # Copyright 2010 Catalyst IT, Ltd # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>.
koha-foreach --enabled /usr/share/koha/bin/cronjobs/holds/build_holds_queue.pl
And checking out cron.monthly and cron.weekly failed to find a koha-common file.
And by the way, running a zebra process twice for the same instance is a bad thing to do. So please check /etc/cron.* before you use what was suggested by Vashil Patil.
GPML, Mark Tompsett
-----Original Message----- From: Phillip Ponchot Sent: Monday, July 07, 2014 1:21 PM To: Robin Sheat Cc: koha@lists.katipo.co.nz Subject: Re: [Koha] Crontab - is that one tabs used to open beer cans?
There is a "systems" crontab which ubuntu warns not to change. The crontab on the old server is sudo crotab -uroot -e where all the koha cronjobs are setup. When I run this command on the new server there's info about the crontab but there are no jobs in the crontab so I guess I'll have to create them to get koha to run properly.
Thanks for your help. Phillip
From: robin@catalyst.net.nz To: koha@lists.katipo.co.nz Date: Mon, 7 Jul 2014 16:14:40 +1200 Subject: Re: [Koha] Crontab - is that one tabs used to open beer cans?
Phillip Ponchot schreef op zo 06-07-2014 om 21:09 [-070 0]: Thank you so much. Its easier to use one that is already built than to spend hours trying to build the crontab. I appreciate you're sharing. Phillip
Go with what Mark said to start with: you're viewing the user crontab when you use crontab -e, and that's most likely not what you want.
The Koha-specific one lives in /etc/crontab or as a file within /etc/crontab.d.
-- Robin Sheat Catalyst IT Ltd. ✆ +64 4 803 2204 GPG: 5FA7 4B49 1E4D CAA4 4C38 8505 77F5 B724 F871 3BDF
Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Ko ha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
--
Sent from my Android device with K-9 Mail. Please excuse my brevity. _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
-- Tomás Cohen Arazi Prosecretaría de Informática Universidad Nacional de Córdoba ✆ +54 351 5353750 ext 13168 GPG: B76C 6E7C 2D80 551A C765 E225 0A27 2EA1 B2F3 C15F
participants (5)
-
Chris Cormack -
Mark Tompsett -
Phillip Ponchot -
Robin Sheat -
Tomas Cohen Arazi