From owner-freebsd-questions@FreeBSD.ORG Tue Feb 3 10:05:11 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 90B8516A4CE for ; Tue, 3 Feb 2004 10:05:11 -0800 (PST) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 549EF43D39 for ; Tue, 3 Feb 2004 10:05:10 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.10/8.12.10) id i13I597u013889; Tue, 3 Feb 2004 12:05:09 -0600 (CST) (envelope-from dan) Date: Tue, 3 Feb 2004 12:05:09 -0600 From: Dan Nelson To: Dan Rue Message-ID: <20040203180509.GD64674@dan.emsphone.com> References: <20040203180543.GC10972@therub.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040203180543.GC10972@therub.org> X-OS: FreeBSD 5.2-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.5.1i cc: freebsd-questions@freebsd.org Subject: Re: keeping up to date with cron X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Feb 2004 18:05:11 -0000 In the last episode (Feb 03), Dan Rue said: > I am somewhat new to the FreeBSD stuff. After getting used to the > cvsup way of life, I added this to my crontab: > > # Package database maintaince > 25 2 * * * root /usr/local/bin/cvsup -g -L 2 /root/cvsup/ports-supfile && /usr/local/sbin /portsdb -uU > 0 1 * * 6 root /usr/local/sbin/pkgdb -aF > > # Should probably do this manually from time to time > #0 4 * * 6 root /usr/local/sbin/portupgrade -aRy > > Note that I don't actually run portupgrade from cron anymore. Any > suggestions on better flags or ways of doing any of these tasks? > What do you all have in your crons? Note that this is a desktop > system, not a production server. But what if it was a production > server? Shuold I do anything differently? Since I cvsup the raw repo, I have an extra "cvs update" step, but apart from that, I do basically the same thing. I also run "pkg_version -vL =" and "cd /usr/ports ; ls -ltrd */*/work" as part of the cron job so I can see which of my installed ports need updating, and whether I have any leftover work directories. I don't portupgrade automatically because of the churn in all the gnome packages, and some ports may want to ask questions during the install, or may change their behaviour. Daemons migrating their startup scripts to the rc.subr format, for example, won't start until you add their knob to /etc/rc.conf. -- Dan Nelson dnelson@allantgroup.com