From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH] gnu: rottlog: rotate messages daily. Date: Wed, 07 Sep 2016 11:52:42 +0200 Message-ID: <87k2eoox3p.fsf@gnu.org> References: <87d1lfziew.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53410) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhZXO-00057f-5B for guix-devel@gnu.org; Wed, 07 Sep 2016 05:52:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bhZXL-00067N-D3 for guix-devel@gnu.org; Wed, 07 Sep 2016 05:52:58 -0400 In-Reply-To: <87d1lfziew.fsf@gnu.org> (Jan Nieuwenhuizen's message of "Thu, 11 Aug 2016 12:52:55 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Jan Nieuwenhuizen Cc: guix-devel@gnu.org Hi! Jan Nieuwenhuizen skribis: > Using the attached patch and the configuration below, rottlog > actually rotates /var/log/messages daily. Woohoo! > From c7fc570327faeb50503494b370a2f5ab21d4049b Mon Sep 17 00:00:00 2001 > From: Jan Nieuwenhuizen > Date: Sat, 18 Jun 2016 22:37:48 +0200 > Subject: [PATCH] gnu: rottlog: rotate messages daily. > > * gnu/packages/admin.scm (rottlog): Set packdir in etc/rc; fixes rotating. > Rename weekly to daily; rotates /var/log/messages daily. I split it in several patches and pushed part of this. =E2=80=98rottlog=E2=80=99 was looking for config files in OUT/etc, which ma= de it impossible for people to configure it. So in commit 268ad34e0eadf8a015798b5c5587aad65b9f3a61 I changed it to look for configuration files in /etc/rottlog. Consequently, running =E2=80=9Crottlog=E2=80=9D alone won=E2=80=99t work; o= ne has to provide /etc/rottlog/{rc,daily} first. We should have a GuixSD service that does that. Thoughts? Thanks, Ludo=E2=80=99.