From owner-freebsd-questions@FreeBSD.ORG Wed May 5 17:00:01 2010 Return-Path: Delivered-To: freebsd-questions@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 810B810657B6 for ; Wed, 5 May 2010 17:00:01 +0000 (UTC) (envelope-from phoffman@proper.com) Received: from hoffman.proper.com (Hoffman.Proper.COM [207.182.41.81]) by mx1.freebsd.org (Postfix) with ESMTP id 586138FC27 for ; Wed, 5 May 2010 17:00:00 +0000 (UTC) Received: from [10.20.30.158] (75-101-30-90.dsl.dynamic.sonic.net [75.101.30.90]) (authenticated bits=0) by hoffman.proper.com (8.14.4/8.14.3) with ESMTP id o45Gxugs076146 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 5 May 2010 09:59:57 -0700 (MST) (envelope-from phoffman@proper.com) Mime-Version: 1.0 Message-Id: In-Reply-To: <4BE18B3E.9080006@FreeBSD.org> <87zl0efkie.fsf@kobe.laptop> References: <4BE18B3E.9080006@FreeBSD.org> <87zl0efkie.fsf@kobe.laptop> Date: Wed, 5 May 2010 09:59:54 -0700 To: glarkin@FreeBSD.org, Giorgos Keramidas From: Paul Hoffman Content-Type: text/plain; charset="us-ascii" Cc: freebsd-questions@FreeBSD.org Subject: Re: newsyslog not reading /ect/rc.conf arguments? 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, 05 May 2010 17:00:01 -0000 At 6:14 PM +0300 5/5/10, Giorgos Keramidas wrote: >How did you start newsyslog? There's an rc.d script that should *read* >the flags from rc.conf: > > /etc/rc.d/newsyslog start Yes, exactly. I did '/etc/rc.d/newsyslog stop', then '/etc/rc.d/newsyslog start'. At 11:14 AM -0400 5/5/10, Greg Larkin wrote: >newsyslog is invoked at boot time by the /etc/rc.d/newsyslog script to >create missing log files, but after that, it's invoked regularly by cron >to do the actual rotations. Check the /etc/crontab file and add your >flags there, and you should be all set. Thanks, I see that now. This seems like a broken model: intial boot and later restarts uses arguments from /etc/rc.conf, but the periodic call does not. I don't think we want people modifying /etc/crontab, do we? Shouldn't /etc/crontab be calling '/etc/rc.d/newsyslog restart' instead? --Paul Hoffman