Re: Daily periodic cronjob generates core dump
On Fri, Jun 14, 2013 at 2:48 PM, Greg Larkin glar...@freebsd.org wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 6/14/13 6:26 AM, C. L. Martinez wrote: Hi all, I have a FreeBSD 9.1 host (fully patched) with ZFS. Every day I am receiving in security output this message: fbsd.domain.local kernel log messages: +++ /tmp/security.AT1oDecp 2013-06-14 03:02:10.0 + +pid 75930 (try), uid 0: exited on signal 10 (core dumped) pid 76241 +(try), uid 0: exited on signal 10 (core dumped) How can I detect where is the problem?? Thanks. You can safely ignore this message, as it's generated by autotools when you are building your packages with poudriere. See: http://lists.freebsd.org/pipermail/freebsd-questions/2010-February/213026.html Also check section 12.11.3 on this page for more details on suppressing the message: http://www.freebsd.org/doc/en/books/handbook/configtuning-configfiles.html Many thanks Greg. Works. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Daily periodic cronjob generates core dump
Hi all, I have a FreeBSD 9.1 host (fully patched) with ZFS. Every day I am receiving in security output this message: fbsd.domain.local kernel log messages: +++ /tmp/security.AT1oDecp 2013-06-14 03:02:10.0 + +pid 75930 (try), uid 0: exited on signal 10 (core dumped) pid 76241 +(try), uid 0: exited on signal 10 (core dumped) How can I detect where is the problem?? Thanks. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Daily periodic cronjob generates core dump
C. L. Martinez writes: I have a FreeBSD 9.1 host (fully patched) with ZFS. Every day I am receiving in security output this message: fbsd.domain.local kernel log messages: +++ /tmp/security.AT1oDecp 2013-06-14 03:02:10.0 + +pid 75930 (try), uid 0: exited on signal 10 (core dumped) pid 76241 +(try), uid 0: exited on signal 10 (core dumped) How can I detect where is the problem?? Have you added anything to the default system crontab? Are there any user crontabs? Robert Huff ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Daily periodic cronjob generates core dump
On Fri, Jun 14, 2013 at 11:42 AM, Robert Huff roberth...@rcn.com wrote: C. L. Martinez writes: I have a FreeBSD 9.1 host (fully patched) with ZFS. Every day I am receiving in security output this message: fbsd.domain.local kernel log messages: +++ /tmp/security.AT1oDecp 2013-06-14 03:02:10.0 + +pid 75930 (try), uid 0: exited on signal 10 (core dumped) pid 76241 +(try), uid 0: exited on signal 10 (core dumped) How can I detect where is the problem?? Have you added anything to the default system crontab? Are there any user crontabs? Robert Huff I have added a script to rebuild packages every week with poudriere: # /etc/crontab - root's crontab for FreeBSD # # $FreeBSD: release/9.1.0/etc/crontab 194170 2009-06-14 06:37:19Z brian $ # SHELL=/bin/sh PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin # #minute hourmdaymonth wdaywho command # */5 * * * * root/usr/libexec/atrun # # Save some entropy so that /dev/random can re-seed on boot. */11* * * * operator /usr/libexec/save-entropy # # Rotate log files every hour, if necessary. 0 * * * * rootnewsyslog # # Perform daily/weekly/monthly maintenance. 1 3 * * * rootperiodic daily 15 4 * * 6 rootperiodic weekly 30 5 1 * * rootperiodic monthly # # Adjust the time zone if the CMOS clock keeps local time, as opposed to # UTC time. See adjkerntz(8) for details. 1,310-5 * * * rootadjkerntz -a # # Rebuild all necessary packages for SIEM infrastructure 35 23 * * 4 root/root/bin/build_pkgs all ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Daily periodic cronjob generates core dump
C. L. Martinez writes: Have you added anything to the default system crontab? Are I have added a script to rebuild packages every week with poudriere: And if you comment that out? Robert Huff ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Daily periodic cronjob generates core dump
On Fri, Jun 14, 2013 at 12:17 PM, Robert Huff roberth...@rcn.com wrote: C. L. Martinez writes: Have you added anything to the default system crontab? Are I have added a script to rebuild packages every week with poudriere: And if you comment that out? Robert Huff Uhmm .. I will try it ... but for what reason?? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Daily periodic cronjob generates core dump
Uhmm .. I will try it ... but for what reason?? It would be nice to see if anything else in the crontab might be causing it. You can also run `periodic security` as root and see if it manfiests the same way. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Daily periodic cronjob generates core dump
On Fri, Jun 14, 2013 at 12:30 PM, Jason Birch jbi...@jbirch.net wrote: Uhmm .. I will try it ... but for what reason?? It would be nice to see if anything else in the crontab might be causing it. You can also run `periodic security` as root and see if it manfiests the same way. Running from console, no problem: root@fbsd:~ # periodic security Checking setuid files and devices: Checking negative group permissions: Checking for uids of 0: root 0 toor 0 Checking for passwordless accounts: Checking login.conf permissions: Checking for ports with mismatched checksums: fbsd.domain.local pf denied packets: +++ /tmp/security.NiYRT5WC 2013-06-14 12:44:34.0 + +block drop in log quick on ! lo0 inet from 127.0.0.0/8 to any [ Evaluations: 166898 Packets: 0 Bytes: 0 States: 0 ] +block drop in log quick on ! em0 inet from 172.16.0.0/24 to any [ Evaluations: 132328 Packets: 0 Bytes: 0 States: 0 ] +block drop in log quick inet from 172.16.0.109 to any [ Evaluations: 132328 Packets: 0 Bytes: 0 States: 0 ] +block drop in log quick on ! lo0 inet6 from ::1 to any [ Evaluations: 132328 Packets: 0 Bytes: 0 States: 0 ] +block drop in log all [ Evaluations: 132328 Packets: 128574 Bytes: 12252183 States: 0 ] +block drop in log quick from ossec_fwtable to any [ Evaluations: 132328 Packets: 0 Bytes: 0 States: 0 ] +block drop out log quick from any to ossec_fwtable [ Evaluations: 166898 Packets: 0 Bytes: 0 States: 0 ] fbsd.domain.local login failures: fbsd.domain.local refused connections: -- End of security output -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Cronjob Cvsup - What?
On 27/01/2013 06:34, Lowell Gilbert wrote: If you needed version control features on your ports tree (especially if you were regularly contributing changes to ports), getting and updating your tree through subversion would have some extra features you might want, but it doesn't sound as if that is the case for you. Unless you have a specific reason why portsnap doesn't fit your use case, it's definitely the way to go for just keeping a ports tree updated regularly. Last 10 years I am using cvsup. Any good guide for the transition to subversion ? For ports is easy(portsnap), but I for system update I still have problems saying good bye to old habits and I still use cvsup...:-) Peter ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Cronjob Cvsup - What?
On 27/01/2013 00:11, W. D. wrote: What would be the best Cron command to keep ports updated on a daily basis? Try this as a crontab entry: 0 3 * * * * /usr/sbin/portsnap cron update Two points to note: 1) The 'cron' verb is important for anyone setting up an automated job like this. It causes portsnap to wait for a random number of seconds (but less than 1 hour) before connecting to the portsnap server. Since the tendency is for people to schedule cron jobs to happen on the hour, this helps to avoid everyone connecting at once and smooths out the server load. 2) This assumes that you have previously run portsnap fetch extract to get yourself a portsnap-ready copy of the ports tree. You only need to do that once, but you should move aside any pre-existing copy of /usr/ports obtained by any means other than portsnap(8) before you do (but keep anything under /usr/ports/distfiles and maybe /usr/ports/packages). Something like: cd /usr mv ports ports.old mkdir ports mv ports.old/distfiles ports/distfiles mv ports.old/packages ports/packages portsnap fetch extract Although this may be complicated if any of /usr/ports, /usr/ports/distfiles or /usr/ports/packages are on a separate partition or ZFS. I say 'move aside' due to the caution imbued by having been a professional sysadmin for more years than I care to remember. If you are still convinced of your own infallibility, then you might find rm(1) an acceptable alternative. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey JID: matt...@infracaninophile.co.uk signature.asc Description: OpenPGP digital signature
Re: Cronjob Cvsup - What?
On Sunday 27 Jan 2013 09:46:51 Matthew Seaman wrote: to get yourself a portsnap-ready copy of the ports tree. You only need to do that once, but you should move aside any pre-existing copy of /usr/ports obtained by any means other than portsnap(8) before you do (but keep anything under /usr/ports/distfiles and maybe /usr/ports/packages). Something like: cd /usr mv ports ports.old mkdir ports mv ports.old/distfiles ports/distfiles mv ports.old/packages ports/packages portsnap fetch extract Although this may be complicated if any of /usr/ports, /usr/ports/distfiles or /usr/ports/packages are on a separate partition or ZFS. I suppose the best approach with ZFS would be to make a snapshot immediately prior to running portsnap. -- Mike Clarke ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Cronjob Cvsup - What?
On 27/01/2013 08:35, Zyumbilev, Peter wrote: Last 10 years I am using cvsup. Any good guide for the transition to subversion ? Most of the guides around freebsd.org are aimed at developers who will be using SVN read-write. For simple read-only use (ie. not checking anything into the repository) the following should suffice: 0) Install svn It isn't part of the base system, and it has too many external dependencies with different licensing terms for it to be bought in easily. There's been some discussion about this, but it hasn't happened yet. If it did, the imported version would be fairly minimal, and anyone wanting to use it for serious development would probably just grab the ports version anyhow. If all you want to do is pull down a copy of the sources then you can turn off most of the options to reduce the fairly large dependency tree to something more manageable: BDB=off: Berkeley Database BOOK=off: Install the Subversion Book ENHANCED_KEYWORD=on: Enhanced svn:keyword support FREEBSD_TEMPLATE=on: FreeBSD Project log template GNOME_KEYRING=off: Build with GNOME Keyring auth support KDE_KWALLET=off: Build with KDE KWallet auth support MAINTAINER_DEBUG=off: Build debug version MOD_DAV_SVN=off: mod_dav_svn module for Apache 2.X MOD_DONTDOTHAT=off: mod_dontdothat for Apache 2.X NEON=off: WebDAV/Delta-V repo access module (neon) P4_STYLE_MARKERS=off: Perforce-style conflict markers SASL=off: SASL support SERF=on: WebDAV/Delta-V repo access module (serf) STATIC=off: Build static version (no shared libs) SVNAUTHZ_VALIDATE=off: install svnauthz-validate SVNMUCC=off: Install Multiple URL Command Client SVNSERVE_WRAPPER=off: Enable svnserve wrapper TEST=off: Run subversion test suite There is the new devel/subversion-static port which does all that, and compiles subversion with static linkage so it has *no* runtime dependencies on anything else. The disadvantage here is that if there is, say, a security hole discovered in the one of the libraries subversion links against, you won't secure the statically linked copy of subversion simply by updating to a fixed version of the shlib. subversion-static is really only intended for providing a one-off binary package that people can download and install in order to bootstrap a more standard FreeBSD environment. 1) Choose a SVN mirror close to you. Currently there are two choices: svn0.us-west.FreeBSD.org -- Western USA svn0.us-east.FreeBSD.org -- Eastern USA Use whichever one gives you best performance. Certainly from Europe at the moment us-east seems to be the best choice. The number of SVN mirrors and their global coverage should increase over time, but it will never need as many servers as the old cvsup network. The canonical list of SVN mirrors is here: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/svn-mirrors.html 2) Choose a protocol for access the SVN servers. Your choices in order of preference are svn:// https:// http:// Use svn:// for best performance. If you're concerned about MITM attacks injecting trojans into the FreeBSD sources, then use https and be sure to verify the certificate hashes on first connection. Otherwise, if you're stuck behind a restrictive firewall, use http:// 3) Choose which branch you want to mirror. It's relatively easy to switch between branches and doesn't involve downloading the entire contents of /usr/src all over again if you change your mind. However right now, the viable choices are head --- Current, the bleeding edge, really only suitable for development purposes stable/9 --- 9-STABLE Still a rapidly changing development branch, but not quite so close to the edge, and with less bleeding involved. stable/8 --- 8-STABLE Ditto. releng/9.1 --- 9.1-RELEASE This tracks any security patches to version 9.1. However, in this case you would be better advised to use freebsd-update(8) to maintain your /usr/src directory tree instead. Similarly releng/9.0 releng/8.3 releng/7.4 for other supported release versions. Don't be fooled into pulling down release/9.1.0 or the like -- this is not a *branch* but a *snapshot*. If you think you want release/9.1.0 then you really want releng/9.1 instead. 4) Make sure /usr/src is empty. Pre-existing files can cause you grief at some unexpected later date even if they don't cause the initial checkout to fail. 5) Put it all together. Run a command like so to check out the content of /usr/src for your chosen branch from your chosen
Re: Cronjob Cvsup - What?
On 27/01/2013 10:07, Mike Clarke wrote: I suppose the best approach with ZFS would be to make a snapshot immediately prior to running portsnap. Yes. That would do the trick quite neatly. In fact, snapshot before each time you run portsnap. Cheers Matthew -- Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey JID: matt...@infracaninophile.co.uk signature.asc Description: OpenPGP digital signature
Re: Cronjob Cvsup - What?
On 27/01/2013 12:46, Matthew Seaman wrote: Cheers, Matthew Matthew, Fantastic howto ! Thanks ! Really a good job...as usual :-) Peter ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Cronjob Cvsup - What?
Hello Matthew, Thanks for an outstanding piece of documentation. It resolves a number of concerns I had and convinced me to move from portsnap where I discovered an apparent bug that gave me security concerns. More specifically I manually edited /usr/ports/UPDATING and portsnap did not recognise the change and download a proper copy. The only downside with svn seems to be the 728 MB footprint. Cheers ... Mark On Sun, 27 Jan 2013 05:46:23 Matthew Seaman wrote: On 27/01/2013 08:35, Zyumbilev, Peter wrote: Last 10 years I am using cvsup. Any good guide for the transition to subversion ? Most of the guides around freebsd.org are aimed at developers who will be using SVN read-write. For simple read-only use (ie. not checking anything into the repository) the following should suffice: 0) Install svn It isn't part of the base system, and it has too many external dependencies with different licensing terms for it to be bought in easily. There's been some discussion about this, but it hasn't happened yet. If it did, the imported version would be fairly minimal, and anyone wanting to use it for serious development would probably just grab the ports version anyhow. If all you want to do is pull down a copy of the sources then you can turn off most of the options to reduce the fairly large dependency tree to something more manageable: BDB=off: Berkeley Database BOOK=off: Install the Subversion Book ENHANCED_KEYWORD=on: Enhanced svn:keyword support FREEBSD_TEMPLATE=on: FreeBSD Project log template GNOME_KEYRING=off: Build with GNOME Keyring auth support KDE_KWALLET=off: Build with KDE KWallet auth support MAINTAINER_DEBUG=off: Build debug version MOD_DAV_SVN=off: mod_dav_svn module for Apache 2.X MOD_DONTDOTHAT=off: mod_dontdothat for Apache 2.X NEON=off: WebDAV/Delta-V repo access module (neon) P4_STYLE_MARKERS=off: Perforce-style conflict markers SASL=off: SASL support SERF=on: WebDAV/Delta-V repo access module (serf) STATIC=off: Build static version (no shared libs) SVNAUTHZ_VALIDATE=off: install svnauthz-validate SVNMUCC=off: Install Multiple URL Command Client SVNSERVE_WRAPPER=off: Enable svnserve wrapper TEST=off: Run subversion test suite There is the new devel/subversion-static port which does all that, and compiles subversion with static linkage so it has *no* runtime dependencies on anything else. The disadvantage here is that if there is, say, a security hole discovered in the one of the libraries subversion links against, you won't secure the statically linked copy of subversion simply by updating to a fixed version of the shlib. subversion-static is really only intended for providing a one-off binary package that people can download and install in order to bootstrap a more standard FreeBSD environment. 1) Choose a SVN mirror close to you. Currently there are two choices: svn0.us-west.FreeBSD.org -- Western USA svn0.us-east.FreeBSD.org -- Eastern USA Use whichever one gives you best performance. Certainly from Europe at the moment us-east seems to be the best choice. The number of SVN mirrors and their global coverage should increase over time, but it will never need as many servers as the old cvsup network. The canonical list of SVN mirrors is here: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/svn-mirrors.html 2) Choose a protocol for access the SVN servers. Your choices in order of preference are svn:// https:// http:// Use svn:// for best performance. If you're concerned about MITM attacks injecting trojans into the FreeBSD sources, then use https and be sure to verify the certificate hashes on first connection. Otherwise, if you're stuck behind a restrictive firewall, use http:// 3) Choose which branch you want to mirror. It's relatively easy to switch between branches and doesn't involve downloading the entire contents of /usr/src all over again if you change your mind. However right now, the viable choices are head --- Current, the bleeding edge, really only suitable for development purposes stable/9 --- 9-STABLE Still a rapidly changing development branch, but not quite so close to the edge, and with less bleeding involved. stable/8 --- 8-STABLE Ditto. releng/9.1 --- 9.1-RELEASE This tracks any security patches to version 9.1. However, in this case you would be better advised to use freebsd-update(8) to maintain your /usr/src directory tree instead. Similarly
Re: Cronjob Cvsup - What?
On Sun, 27 Jan 2013 09:51:12 -0500 MFV mrk...@acm.org wrote: The only downside with svn seems to be the 728 MB footprint. With hard disc space running at around 10c per gigabyte it's a minor issue. -- Steve O'Hara-Smith st...@sohara.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Cronjob Cvsup - What?
Steve O'Hara-Smith writes: The only downside with svn seems to be the 728 MB footprint. With hard disc space running at around 10c per gigabyte it's a minor issue. Doesn't that depend on whose money it is? Robert Huff ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Cronjob Cvsup - What?
On Sun, 27 Jan 2013, Matthew Seaman wrote: 2) Choose a protocol for access the SVN servers. Your choices in order of preference are svn:// https:// http:// Use svn:// for best performance. If you're concerned about MITM attacks injecting trojans into the FreeBSD sources, then use https and be sure to verify the certificate hashes on first connection. Otherwise, if you're stuck behind a restrictive firewall, use http:// HTTPS is preferred. The SVN mirrors section of the Handbook will soon reflect that. Performance should not be very different from svn://. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Cronjob Cvsup - What?
On Sun, 27 Jan 2013 09:51:12 -0500 MFV wrote: Hello Matthew, Thanks for an outstanding piece of documentation. It resolves a number of concerns I had and convinced me to move from portsnap where I discovered an apparent bug that gave me security concerns. More specifically I manually edited /usr/ports/UPDATING and portsnap did not recognise the change and download a proper copy. I don't see why that's a problem. The function of portsnap update is to update files in the tree that have been updated, deleted or added in the repository. Resynchronising the tree and it's metadata with the snapshot is what portsnap extract is for. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Cronjob Cvsup - What?
According to: http://www.freebsd.org/news/2012-compromise.html Cvsup is deprecated. If I have a Cron entry like: #- #Min HrDOM Mnth DOW Command # At 3:46 in the morning, everyday, as root, update the ports tree: 46 3 * * * /usr/local/bin/cvsup -h cvsup12.FreeBSD.org /usr/share/examples/cvsup/ports-supfile #- What should I use: freebsd-update, Subversion, portsnap, or what? What would be the best Cron command to keep ports updated on a daily basis? Thanks for any help you can provide. Start Here to Find It Fast! - http://www.US-Webmasters.com/best-start-page/ $9.99 Domain Names - http://domains.us-webmasters.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Cronjob Cvsup - What?
W. D. w...@us-webmasters.com writes: According to: http://www.freebsd.org/news/2012-compromise.html Cvsup is deprecated. If I have a Cron entry like: #- #Min HrDOM Mnth DOW Command # At 3:46 in the morning, everyday, as root, update the ports tree: 46 3 * * * /usr/local/bin/cvsup -h cvsup12.FreeBSD.org /usr/share/examples/cvsup/ports-supfile #- What should I use: freebsd-update, Subversion, portsnap, or what? What would be the best Cron command to keep ports updated on a daily basis? portsnap is almost certainly the best answer for you. freebsd-update is for the base system, not ports. If you needed version control features on your ports tree (especially if you were regularly contributing changes to ports), getting and updating your tree through subversion would have some extra features you might want, but it doesn't sound as if that is the case for you. Unless you have a specific reason why portsnap doesn't fit your use case, it's definitely the way to go for just keeping a ports tree updated regularly. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Newsyslog | Cronjob faulty? (fwd)
Jos, did you not get my response to your original query over a week ago? I see it made the list archives. Anyway this second time around, Robert Bonomi wins gold for the best guess, with even fewer clues to go on :-) cheers, Ian (who probably said too much, but doesn't resile) -- Forwarded message -- Date: Sat, 19 May 2012 05:03:23 +1000 (EST) From: Ian Smith smi...@nimnet.asn.au To: Jos Chrispijn ker...@webrz.net Cc: freebsd-questions@freebsd.org Subject: Re: Newsyslog | Cronjob faulty? In freebsd-questions Digest, Vol 415, Issue 4, Message: 12 On Wed, 16 May 2012 21:44:53 +0200 Jos Chrispijn ker...@webrz.net wrote: At midnight (00.00) I run this cronjob from my crontab: Crontab: 00 * * * * rootnewsyslog By 'my' crontab, do you mean the system crontab, /etc/crontab ? If so, that's nearly but not quite the default syntax of: #minute hourmdaymonth wdaywho command # Rotate log files every hour, if necessary. 0 * * * * rootnewsyslog Note the single '0'. I don't know if '00' is valid. And it doesn't mean 'at midnight', it means whenever the minute is 0, any hour, any day, any month, any weekday; ie newsyslog is run hourly, on the hour. And the default entry in /etc/newsyslog.conf for maillog is: /var/log/maillog640 7 *@T00 JC So it's newsyslog using newsyslog.conf(5) that creates maillog if it doesn't yet exist, rotates it to maillog.0 at midnight (T00), thereafter compressing it with bzip2 (J). For some reason this goes wrong; (if I run 'newsyslog' on any other time, there is no error message). bzip2: Can't open input file /var/log/maillog.0: No such file or directory. newsyslog: `bzip2 -f /var/log/maillog.0' terminated with a non-zero status (1) /var/log: -rw-r- 1 rootwheel 63162 May 16 21:20 maillog -rw-r- 1 rootwheel 109 May 16 00:00 maillog.0.bz2 -rw-r- 1 rootwheel 73674 May 16 00:00 maillog.1 -rw-r- 1 rootwheel 111 May 15 00:00 maillog.2.bz2 -rw-r- 1 rootwheel 73050 May 15 00:00 maillog.3 -rw-r- 1 rootwheel 109 May 14 00:00 maillog.4.bz2 -rw-r- 1 rootwheel184042 May 14 00:00 maillog.5 Can somebody tell me what goes wrong here? Looks likely two instances of newsyslog racing at midnight; one makes maillog.0.bz2 from the just-rolled maillog.0, the other finds maillog.0 has disappeared before getting to run bzip2 on it? So, two files per day, and the above message? On my other FreeBSD server the same cronjob goes ok... Check /etc/crontab and /etc/newsyslog.conf on both, and make sure you're not also trying to run a user crontab for root, apart from /etc/crontab? cheers, Ian ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Newsyslog | Cronjob faulty?
In freebsd-questions Digest, Vol 415, Issue 4, Message: 12 On Wed, 16 May 2012 21:44:53 +0200 Jos Chrispijn ker...@webrz.net wrote: At midnight (00.00) I run this cronjob from my crontab: Crontab: 00 * * * * rootnewsyslog By 'my' crontab, do you mean the system crontab, /etc/crontab ? If so, that's nearly but not quite the default syntax of: #minute hourmdaymonth wdaywho command # Rotate log files every hour, if necessary. 0 * * * * rootnewsyslog Note the single '0'. I don't know if '00' is valid. And it doesn't mean 'at midnight', it means whenever the minute is 0, any hour, any day, any month, any weekday; ie newsyslog is run hourly, on the hour. And the default entry in /etc/newsyslog.conf for maillog is: /var/log/maillog640 7 *@T00 JC So it's newsyslog using newsyslog.conf(5) that creates maillog if it doesn't yet exist, rotates it to maillog.0 at midnight (T00), thereafter compressing it with bzip2 (J). For some reason this goes wrong; (if I run 'newsyslog' on any other time, there is no error message). bzip2: Can't open input file /var/log/maillog.0: No such file or directory. newsyslog: `bzip2 -f /var/log/maillog.0' terminated with a non-zero status (1) /var/log: -rw-r- 1 rootwheel 63162 May 16 21:20 maillog -rw-r- 1 rootwheel 109 May 16 00:00 maillog.0.bz2 -rw-r- 1 rootwheel 73674 May 16 00:00 maillog.1 -rw-r- 1 rootwheel 111 May 15 00:00 maillog.2.bz2 -rw-r- 1 rootwheel 73050 May 15 00:00 maillog.3 -rw-r- 1 rootwheel 109 May 14 00:00 maillog.4.bz2 -rw-r- 1 rootwheel184042 May 14 00:00 maillog.5 Can somebody tell me what goes wrong here? Looks likely two instances of newsyslog racing at midnight; one makes maillog.0.bz2 from the just-rolled maillog.0, the other finds maillog.0 has disappeared before getting to run bzip2 on it? So, two files per day, and the above message? On my other FreeBSD server the same cronjob goes ok... Check /etc/crontab and /etc/newsyslog.conf on both, and make sure you're not also trying to run a user crontab for root, apart from /etc/crontab? cheers, Ian ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Newsyslog | Cronjob faulty?
At midnight (00.00) I run this cronjob from my crontab: Crontab: 00 * * * * rootnewsyslog For some reason this goes wrong; (if I run 'newsyslog' on any other time, there is no error message). bzip2: Can't open input file /var/log/maillog.0: No such file or directory. newsyslog: `bzip2 -f /var/log/maillog.0' terminated with a non-zero status (1) /var/log: -rw-r- 1 rootwheel 63162 May 16 21:20 maillog -rw-r- 1 rootwheel 109 May 16 00:00 maillog.0.bz2 -rw-r- 1 rootwheel 73674 May 16 00:00 maillog.1 -rw-r- 1 rootwheel 111 May 15 00:00 maillog.2.bz2 -rw-r- 1 rootwheel 73050 May 15 00:00 maillog.3 -rw-r- 1 rootwheel 109 May 14 00:00 maillog.4.bz2 -rw-r- 1 rootwheel184042 May 14 00:00 maillog.5 Can somebody tell me what goes wrong here? On my other FreeBSD server the same cronjob goes ok... thanks, Jos Chrispijn ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Cronjob
Paul Chvostek wrote: 0 1 28-31 * * test `date -v+1d '+%d'` -eq 1 /path/to/script You have to escape the percent sign in crontab with \: run. The entire command portion of the line, up to a newline or % character, will be executed by /bin/sh or by the shell specified in the SHELL variable of the cronfile. Percent-signs (%) in the command, unless escaped with backslash (\), will be changed into newline characters, and all data after the first % will be sent to the command as standard input. bye, Da.Ta ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Cronjob
On Monday 08 June 2009 17:37:14 Jerry McAllister wrote: On Mon, Jun 08, 2009 at 06:31:57PM +0400, Peter Andreev wrote: may be this solution will help you: [snip] * * 31 1/2 * * * 30 4/2 * * * 28 2 * This isn't right, surely? It goes wrong in August and stays wrong for the rest of the year. The 31-day months are 1,3,5,7,8,10,12. Don't forget leapyear. Jonathan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Cronjob
yes, you're right, thank you/ the right version will be: * * 31 1,3,5,7,8,10,12 * * * 30 4,6,9,11 * * * 28,29 2 * 2009/6/9 Jonathan McKeown j.mcke...@ru.ac.za On Monday 08 June 2009 17:37:14 Jerry McAllister wrote: On Mon, Jun 08, 2009 at 06:31:57PM +0400, Peter Andreev wrote: may be this solution will help you: [snip] * * 31 1/2 * * * 30 4/2 * * * 28 2 * This isn't right, surely? It goes wrong in August and stays wrong for the rest of the year. The 31-day months are 1,3,5,7,8,10,12. Don't forget leapyear. Jonathan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Cronjob
Mike Jeays wrote: Isn't that a linuxism? Looking at the man pages for the date command for FreeBSD, it looks as if 'date -v+1d' will return tomorrow's date (and it does, I checked). The -d option is to do with daylight saving time. - eot- I see; will have that incorporated in the script. Thanks for sharing, Jos ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Cronjob
I would like to execute a script on every last day of the month in my crontab. Can someone tell me how I should solve that as it doesn't know which month day is the last day of the month? Solving this in the script to be executed is no option. Thanks, Jos ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Cronjob
On Mon, Jun 8, 2009 at 7:55 AM, Jos Chrispijn j...@webrz.net wrote: I would like to execute a script on every last day of the month in my crontab. Can someone tell me how I should solve that as it doesn't know which month day is the last day of the month? If it really needs to be done on the last day of each month (eg, the 28th of Feb . . . the 31st of Oct . . . etc.), I suppose you could set up 12 different jobs. Be aware of the dreaded leap year, though! Solving this in the script to be executed is no option. Thanks, Jos ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Cronjob
Jos Chrispijn wrote: I would like to execute a script on every last day of the month in my crontab. Can someone tell me how I should solve that as it doesn't know which month day is the last day of the month? Solving this in the script to be executed is no option. I've done this before. My script was in Perl. Essentially, the script ran once every day. At the top of the script, it did a DateTime check to see if tomorrow was the 1st of the month. If it was, the script proceeded, else it exited. Steve smime.p7s Description: S/MIME Cryptographic Signature
Re: Cronjob
put 12 lines, for each month and with the last day. On Mon, 8 Jun 2009, Jos Chrispijn wrote: I would like to execute a script on every last day of the month in my crontab. Can someone tell me how I should solve that as it doesn't know which month day is the last day of the month? Solving this in the script to be executed is no option. Thanks, Jos ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Cronjob
Hi Jos, On Mon, Jun 08, 2009 at 02:55:56PM +0200, Jos Chrispijn wrote: I would like to execute a script on every last day of the month in my crontab. Can someone tell me how I should solve that as it doesn't know which month day is the last day of the month? Solving this in the script to be executed is no option. The only solutions I see are the three-cronjob approach: 0 1 31 1,3,5,7,8,10,12 * /path/to/script 0 1 28 2 * /path/to/script 0 1 30 4,6,9,11* /path/to/script Alternately, you could do this with a single cronjob by putting a little scripting intelligence into the crontab itself: 0 1 28-31 * * test `date -v+1d '+%d'` -eq 1 /path/to/script That may be your easiest option. The script only gets run on the correct dates, but the cron job still gets run more frequently. p -- Paul Chvostek p...@it.ca it.canadahttp://www.it.ca/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Cronjob
may be this solution will help you: * * 31 jan,mar,may,jul,aug,oct,dec * * * 30 apr,jun,sep,nov * * * 28 feb * or: * * 31 1/2 * * * 30 4/2 * * * 28 2 * 2009/6/8 Jos Chrispijn j...@webrz.net I would like to execute a script on every last day of the month in my crontab. Can someone tell me how I should solve that as it doesn't know which month day is the last day of the month? Solving this in the script to be executed is no option. Thanks, Jos ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Cronjob
On Mon, Jun 08, 2009 at 06:31:57PM +0400, Peter Andreev wrote: may be this solution will help you: * * 31 jan,mar,may,jul,aug,oct,dec * * * 30 apr,jun,sep,nov * * * 28 feb * or: * * 31 1/2 * * * 30 4/2 * * * 28 2 * Don't forget leapyear. jerry 2009/6/8 Jos Chrispijn j...@webrz.net I would like to execute a script on every last day of the month in my crontab. Can someone tell me how I should solve that as it doesn't know which month day is the last day of the month? Solving this in the script to be executed is no option. Thanks, Jos ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Cronjob
On Mon, 8 Jun 2009, Jerry McAllister wrote: On Mon, Jun 08, 2009 at 06:31:57PM +0400, Peter Andreev wrote: may be this solution will help you: * * 31 jan,mar,may,jul,aug,oct,dec * * * 30 apr,jun,sep,nov * * * 28 feb * or: * * 31 1/2 * * * 30 4/2 * * * 28 2 * Don't forget leapyear. 0 0 1 * * -Warren Block * Rapid City, South Dakota USA ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Cronjob
On Mon, 08 Jun 2009 14:55:56 +0200, Jos Chrispijn j...@webrz.net said: J I would like to execute a script on every last day of the month in my J crontab. Can someone tell me how I should solve that as it doesn't know J which month day is the last day of the month? Solving this in the script J to be executed is no option. I have two scripts for this; one handles the last day of the month, and the other handles the last work/business day of the month. http://www.hcst.net/~vogelke/src/lastday/ -- Karl Vogel I don't speak for the USAF or my company Liberty means responsibility. That is why most men dread it. --G. B. Shaw ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Cronjob
Found another solution (for running @ 23:58): 58 23 * * * [ `date -d tomorrow +%d` -eq '01' ] /myscript thanks for all other suggestions, Jos Chrispijn ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Cronjob
-- Mike Jeays http://www.jeays.ca http://www.rotarycpmm.ca On June 8, 2009 02:56:31 pm Jos Chrispijn wrote: Found another solution (for running @ 23:58): 58 23 * * * [ `date -d tomorrow +%d` -eq '01' ] /myscript thanks for all other suggestions, Jos Chrispijn ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org Isn't that a linuxism? Looking at the man pages for the date command for FreeBSD, it looks as if 'date -v+1d' will return tomorrow's date (and it does, I checked). The -d option is to do with daylight saving time. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: setup cronjob
Darrell Betts wrote: I have wrote a small script put it in my home directory. I am trying to setup a cronjob to run it every six hours. When it runs the job I receive the error message /usr/home/test/cronjobs/test.sh: not found I have tripe checked the file permissions and they appear correct so I am stumped as to why this won't run? Any ideas? Make sure that the shebang at the top of the script (#!/bin/sh or similar) points to a valid shell, and that it uses unix-style end of lines. If a control character or linefeed gets in there somewhere, the kernel won't be able to find the proper interpreter to run the script, hence the test.sh: '' not found. -- Fuzzy love, -CyberLeo Technical Administrator CyberLeo.Net Webhosting http://www.CyberLeo.Net [EMAIL PROTECTED] Furry Peace! - http://.fur.com/peace/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
setup cronjob
I have wrote a small script put it in my home directory. I am trying to setup a cronjob to run it every six hours. When it runs the job I receive the error message /usr/home/test/cronjobs/test.sh: not found I have tripe checked the file permissions and they appear correct so I am stumped as to why this won't run? Any ideas? Cron job example 0 /6 * * * test /usr/home/test/cronjobs/test.sh Thanks in advanced Darrell Betts [EMAIL PROTECTED] --- Looks like I Picked the Wrong Week to Stop Sniffing Glue. -- Steve McCroskey -- Live ATC Feed from Toledo Express Airport http://audio.liveatc.net:8012/ktol.m3u ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: setup cronjob
On Thu, 11 Sep 2008 22:12:35 -0400 Darrell Betts [EMAIL PROTECTED] wrote: I have wrote a small script put it in my home directory. I am trying to setup a cronjob to run it every six hours. When it runs the job I receive the error message /usr/home/test/cronjobs/test.sh: not found I have tripe checked the file permissions and they appear correct so I am stumped as to why this won't run? Any ideas? Cron job example 0 /6 * * * test /usr/home/test/cronjobs/test.sh Does user test have access to /usr/home/test/cronjobs/? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: setup cronjob
Darrell Betts [EMAIL PROTECTED] wrote: I have wrote a small script put it in my home directory. I am trying to setup a cronjob to run it every six hours. When it runs the job I receive the error message /usr/home/test/cronjobs/test.sh: not found I have tripe checked the file permissions and they appear correct so I am stumped as to why this won't run? Any ideas? Show the output of: % ls -l /usr/home/test/cronjobs % crontab -l % less /etc/crontab -- Sahil Tandon [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: [freebsd-questions] cronjob - email messages sent
On Mon, 7 Apr 2008 at 09:38 -0400, [EMAIL PROTECTED]: D Hill [EMAIL PROTECTED] writes: I have several cronjob's set up on a server we have under the user root. I need to specify specific email addresses results are sent to. Using documentation from: man 5 crontab I thought I could surround the jobs: ... MAILTO=root,someoneelse @hourly /usr/local/bin/mysqladmin -u internalonly status 30 8 * * * /usr/local/bin/mysql -u internalonly /root/mysql.optimize */15 * * * * mysql -u internalonly /root/delete_rad_usersonline 0 */4 * * * mysql -u internalonly /root/delete_rad_authlog_failed MAILTO=root ... It works for @hourly, but not for the other three. I don't have a chance to look into it now, but it should definitely work the way you have done it. [I usually invoke sendmail directly on the crontab line if I want mail output, so I haven't any experience to draw on here.] You might want to check whether the order of the schedule lines matters. It is working. Checking the man page for cron: %man cron ... The cron utility then wakes up every minute, examining all stored crontabs, checking each command to see if it should be run in the current minute. From this, I gathered they were read from top to bottom. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
cronjob - email messages sent
I have several cronjob's set up on a server we have under the user root. I need to specify specific email addresses results are sent to. Using documentation from: man 5 crontab I thought I could surround the jobs: ... MAILTO=root,someoneelse @hourly /usr/local/bin/mysqladmin -u internalonly status 30 8 * * * /usr/local/bin/mysql -u internalonly /root/mysql.optimize */15 * * * * mysql -u internalonly /root/delete_rad_usersonline 0 */4 * * * mysql -u internalonly /root/delete_rad_authlog_failed MAILTO=root ... It works for @hourly, but not for the other three. -d ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Expunging IMAP mailbox via cronjob : possible?
I know this isn't really a FreeBSD question, but I was wondering if there was a means available where I can expunge my email automatically from my IMAP inboxes / folders (I have a wide variety of custom folders). I just find it tedious logging in via SSH to each host with pine and expunging the contents of the folder one-by-one, and there's no way in hell I'm going to use an M$ based mailclient (Outlook Express, Outlook) to do the same. Thanks, -Garrett ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Expunging IMAP mailbox via cronjob : possible?
Garrett Cooper wrote: I know this isn't really a FreeBSD question, but I was wondering if there was a means available where I can expunge my email automatically from my IMAP inboxes / folders (I have a wide variety of custom folders). I just find it tedious logging in via SSH to each host with pine and expunging the contents of the folder one-by-one, and there's no way in hell I'm going to use an M$ based mailclient (Outlook Express, Outlook) to do the same. Thanks, -Garrett Nevermind--I think I found out how to do this with Perl: http://search.cpan.org/~cwest/Net-IMAP-Simple-0.95/lib/Net/IMAP/Simple.pm. -Garrett ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Problem with cronjob
Always worked well when I dump a script into the /etc/periodic/daily folder and set permissions to have a script run automatically each night. But this is not working for the Spamassassin rulesdujour script. I can run the script manually, no problem, any ideas? Here is the bottom of that directory, my own scripts prefixed with '8??-webtent', the backup and cvsports scripts run perfectly. The only difference I see in these three scripts is the rulesdujour calls /bin/bash, which is a sym link to /usr/local/bin/bash, the other two call /bin/sh. Should I change that? -rwxr-xr-x 1 root wheel723 Jan 10 2004 500.queuerun -rwxr-xr-x 1 root wheel 7432 Dec 14 09:08 800.webtent-backup -rwxr-xr-x 1 root wheel 71 Mar 22 12:43 810.webtent-cvsports -rwxr-xr-x 1 root wheel 50364 Mar 23 23:41 820.webtent-rulesdujour -rwxr-xr-x 1 root wheel712 Jan 10 2004 999.local My daily run log shows the cvsports activity and stops right there: ... Edit ports/x11-wm/xfce4-session/Makefile Edit ports/x11-wm/xfce4-session/pkg-plist Finished successfully 666196 bytes transferred in 2.5 seconds (263.32 kBps) -- End of daily output -- -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
cronjob doesn't run???
i have an odd problem with this cronjob, #!/bin/sh cd /home/timothy burncd -f /dev/acd0c blank tar -zcvf ./burning/thunderbird.tar.gz ./.thunderbird/* tar -zcvf ./burning/Projects.tar.gz ./Projects/* tar -zcvf ./burning/cvsd.tar.gz /usr/local/cvsd/* mkisofs -L -l -relaxed-filenames -o tmp.iso burning burncd -e -f /dev/acd0c data tmp.iso rm tmp.iso rm burning/* n# ls -l /etc/periodic/daily/Backup -rwxr-xr-x 1 root wheel 323 Dec 27 22:42 /etc/periodic/daily/Backup as you can see it's not a permissions issue. the job must do something, because i end up with a cdrw i can't mount :\ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: cronjob doesn't run???
Might be a path issue. I had similar issues with cron (/etc/periodic/daily) if I didn't use a full path to the binaries. :c( i have an odd problem with this cronjob, #!/bin/sh cd /home/timothy burncd -f /dev/acd0c blank tar -zcvf ./burning/thunderbird.tar.gz ./.thunderbird/* tar -zcvf ./burning/Projects.tar.gz ./Projects/* tar -zcvf ./burning/cvsd.tar.gz /usr/local/cvsd/* mkisofs -L -l -relaxed-filenames -o tmp.iso burning burncd -e -f /dev/acd0c data tmp.iso rm tmp.iso rm burning/* n# ls -l /etc/periodic/daily/Backup -rwxr-xr-x 1 root wheel 323 Dec 27 22:42 /etc/periodic/daily/Backup as you can see it's not a permissions issue. the job must do something, because i end up with a cdrw i can't mount :\ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
save-entropy cronjob Added: not found every 10 minutes
Hello, Does anybody know what is going on with the crobjob /usr/libexec/save-entropy that by default is scheduled to run every 10 minutes? I'm getting tons of log mail because of this, but I don't want to just comment out the cronjob because it is annoying. It is only happening on one of my FreeBSD 5.2.1 boxes, and the only thing I can figure that is causing it (different from other boxes) is that it is running the dhcpd server. Any thoughts? Thanks, Duane Winner [EMAIL PROTECTED] mail Mail version 8.1 6/6/93. Type ? for help. /var/mail/dwinner: 2 messages 2 new N 1 [EMAIL PROTECTED] Mon Jul 19 12:11 23/955 Cron [EMAIL PROTECTED] /usr/libexec/save-entropy N 2 [EMAIL PROTECTED] Mon Jul 19 12:22 23/955 Cron [EMAIL PROTECTED] /usr/libexec/save-entropy Message 1: From [EMAIL PROTECTED] Mon Jul 19 12:11:01 2004 Date: Mon, 19 Jul 2004 12:11:01 -0400 (EDT) From: [EMAIL PROTECTED] (Cron Daemon) To: [EMAIL PROTECTED] Subject: Cron [EMAIL PROTECTED] /usr/libexec/save-entropy Added: not found ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: save-entropy cronjob Added: not found every 10 minutes
In the last episode (Jul 19), Duane Winner said: Does anybody know what is going on with the cronjob /usr/libexec/save-entropy that by default is scheduled to run every 10 minutes? I'm getting tons of log mail because of this, but I don't want to just comment out the cronjob because it is annoying. Subject: Cron [EMAIL PROTECTED] /usr/libexec/save-entropy Added: not found Try changing the top line of that script to read #!/bin/sh -x , which will log every command that it runs to stderr. You should then be able to determine which line is printing that error message. My guess is something in your rc.conf is doing it. -- Dan Nelson [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: save-entropy cronjob Added: not found every 10 minutes
Thanks! Using your technique, I discovered that I stupidly forgot to put a '#' before one of my comments in /etc/rc.conf. Dan Nelson wrote: In the last episode (Jul 19), Duane Winner said: Does anybody know what is going on with the cronjob /usr/libexec/save-entropy that by default is scheduled to run every 10 minutes? I'm getting tons of log mail because of this, but I don't want to just comment out the cronjob because it is annoying. Subject: Cron [EMAIL PROTECTED] /usr/libexec/save-entropy Added: not found Try changing the top line of that script to read #!/bin/sh -x , which will log every command that it runs to stderr. You should then be able to determine which line is printing that error message. My guess is something in your rc.conf is doing it. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]