From owner-freebsd-questions@FreeBSD.ORG Wed May 20 14:53:17 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 607511065673 for ; Wed, 20 May 2009 14:53:17 +0000 (UTC) (envelope-from mel.flynn+fbsd.questions@mailing.thruhere.net) Received: from mailhub.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id 2EE018FC13 for ; Wed, 20 May 2009 14:53:17 +0000 (UTC) (envelope-from mel.flynn+fbsd.questions@mailing.thruhere.net) Received: from sarevok.dnr.servegame.org (mailhub.lan.rachie.is-a-geek.net [192.168.2.11]) by mailhub.rachie.is-a-geek.net (Postfix) with ESMTP id 635D27E837; Wed, 20 May 2009 06:53:16 -0800 (AKDT) From: Mel Flynn To: freebsd-questions@freebsd.org Date: Wed, 20 May 2009 16:52:59 +0200 User-Agent: KMail/1.11.3 (FreeBSD/8.0-CURRENT; KDE/4.2.3; i386; ; ) References: <43B3CD0F-BDCB-4DEC-9E17-E0D7A8287FDE@strauser.com> <200905201400.23721.mel.flynn+fbsd.questions@mailing.thruhere.net> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200905201652.59621.mel.flynn+fbsd.questions@mailing.thruhere.net> Cc: Subject: Re: Limiting resources in cron jobs X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 May 2009 14:53:17 -0000 On Wednesday 20 May 2009 16:18:28 Kirk Strauser wrote: > On May 20, 2009, at 7:00 AM, Mel Flynn wrote: > > Check with top what the CPU time is, it's not the same as the wall > > clock. > > Give me *some* credit. :-) Sorry, haven't you heard? Financial crisis ;) Are you sure cron respects login.conf? I don't see it mentioned in the man page. Have you tried modifying the offending crontab to run using limits(1) program? AFAIK, cron doesn't use login(1) or underlying infrastructure, yet it uses pam. -- Mel