+1 El jul 7, 2014 4:57 PM, "Chris Cormack" <chr...@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 <pponc...@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: mtomp...@hotmail.com > >> To: pponc...@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: ro...@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 > >> > > > >_______________________________________________ > >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 > _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha