From owner-freebsd-ports@FreeBSD.ORG Fri Dec 3 19:50:02 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D80C716A4CE for ; Fri, 3 Dec 2004 19:50:02 +0000 (GMT) Received: from mofo.socruel.nu (gone.xs4all.nl [213.84.247.136]) by mx1.FreeBSD.org (Postfix) with ESMTP id B234943D3F for ; Fri, 3 Dec 2004 19:50:01 +0000 (GMT) (envelope-from freebsd-ports@socruel.nu) Received: from localhost (localhost [127.0.0.1]) by mofo.socruel.nu (Postfix) with ESMTP id 1DCCD24FBA for ; Fri, 3 Dec 2004 20:50:00 +0100 (CET) Received: from mofo.socruel.nu ([127.0.0.1]) by localhost (charlie.socruel.nu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 83760-06 for ; Fri, 3 Dec 2004 20:49:53 +0100 (CET) Received: from lotus.ad.socruel.org (lotus.ad.socruel.org [172.16.0.200]) by mofo.socruel.nu (Postfix) with ESMTP id 2E5C724FB4 for ; Fri, 3 Dec 2004 20:49:52 +0100 (CET) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Fri, 3 Dec 2004 20:49:49 +0100 Message-ID: <2578F22C7A5515449899AF290E2D4832023F7A@lotus.ad.socruel.org> X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Syslog-ng port and newsyslog Thread-Index: AcTZcT8UM9sFMbNxRzSKnJQBTV6Hwg== From: "freebsd-ports" To: X-Virus-Scanned: by amavisd-new at socruel.nu Subject: Syslog-ng port and newsyslog X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Dec 2004 19:50:03 -0000 Hello, I have installed the Syslog-ng port and I do not seem to get the rotation of the logfiles right. Newsyslog has /var/run/syslog.pid hardcoded as it's pid file, so I already configured this as the pid file for syslog-ng. But at rotation newsyslog doesn't zip the logfiles as stated in my /etc/newsyslog.conf file. Does anyone have a clue what is wrong here? When I used the syslog daemon from FreeBSD eveything worked ok (that means with the rotation the logfiles were zipped). root@charlie OLD # uname -a FreeBSD charlie.socruel.nu 4.9-RELEASE-p10 FreeBSD 4.9-RELEASE-p10 #0: Sun Jun 20 20:59:05 CEST 2004 root@charlie.socruel.nu:/usr/obj/usr/src/sys/CHARLIE i386 root@charlie OLD # less /etc/newsyslog.conf ######################################################################## # # # Filename : /etc/newsyslog.conf # Description : Configuration file for newsyslog # #----------------------------------------------------------------------- - # Revision History # # Date Initiator Description # 04/11/27 Lars Changed stuff, v. 0.11 # 03/06/14 Lars Creation, v. 0.1 # ######################################################################## # # Format : # logfilename [owner.group] mode count size when [ZB] [/pid_file] [sig_num] /var/log/messages root.wheel 600 12 * $M1D0 Z /var/log/cron.log root.wheel 600 28 * $D0 Z=20 /var/log/su.log root.wheel 600 28 * $D0 Z /var/log/mail.log root.wheel 600 12 * $M1D0 Z /var/log/daemon.log root.wheel 600 12 * $M1D0 Z ######################################################################## # # # File : /etc/crontab # Description : root's crontab for FreeBSD. # #----------------------------------------------------------------------- - # Revision History # # Date Initiator Description # 04/10/24 Lars Added freshclam, v. 0.11 # 03/06/14 Lars Creation, v. 0.1 # ######################################################################## # # #----------------------------------------------------------------------- - # Define some variables #----------------------------------------------------------------------- - SHELL=3D/bin/sh PATH=3D/etc:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin HOME=3D/var/log MAILTO=3D"" # #----------------------------------------------------------------------- - # The default FreeBSD stuff ... #----------------------------------------------------------------------- - # #minute hour mday month wday who command # */5 * * * * root /usr/libexec/atrun # # rotate log files every hour, if necessary 0 * * * * root newsyslog -a /var/log/OLD # # do daily/weekly/monthly maintenance #1 3 * * * root periodic daily #15 4 * * 6 root periodic weekly #30 5 1 * * root periodic monthly # # time zone change adjustment for wall cmos clock, # does nothing, if you have UTC cmos clock. # See adjkerntz(8) for details. 1,31 0-5 * * * root adjkerntz -a # #----------------------------------------------------------------------- - ######################################################################## # # # File : charlie:/etc/rc.conf # Description : Startup configuration file. This file contains the # overrides from /etc/defaults/rc.conf. # #----------------------------------------------------------------------- - # Revision History # # Date Initiator Description # 04/12/02 Lars Changed syslog-ng pidfile, v.0.16 # 04/11/27 Lars Changed syslogd, v. 0.15 # 04/10/24 Lars Added Clam AV daemon, v. 0.14 # 04/06/06 Lars Added alias on xl0 interface, v. 0.12 # 04/04/05 Lars Changed ip address, v. 0.11 # 03/06/14 Lars Creation, v. 0.1 # ######################################################################## # #----------------------------------------------------------------------- - # Basic network options. #----------------------------------------------------------------------- - ifconfig_xl0=3D"inet 172.16.1.1 netmask 255.255.255.0" ifconfig_xl0_alias0=3D"inet a.b.c.d netmask 255.255.255.255" hostname=3D"charlie.socruel.nu" #----------------------------------------------------------------------- - # Network routing options. #----------------------------------------------------------------------- - defaultrouter=3D"172.16.1.254" #----------------------------------------------------------------------- - # Local startup #----------------------------------------------------------------------- - #####local_startup=3D"/etc/rc.d" #----------------------------------------------------------------------- - # Network daemons. #----------------------------------------------------------------------- - syslogd_enable=3D"YES" syslogd_program=3D"/usr/local/sbin/syslog-ng" syslogd_flags=3D"-f /usr/local/etc/syslog-ng/syslog-ng.conf -p /var/run/syslog.pid" Regards, Lars.