Date: Wed, 6 Jun 2001 08:13:13 +0200 (CEST) From: Anders Nordby <anders@fix.no> To: FreeBSD-gnats-submit@freebsd.org Subject: bin/27901: Add bzip2 hook to newsyslog(8) Message-ID: <20010606061313.4114D3C8E@totem.fix.no>
next in thread | raw e-mail | index | archive | help
>Number: 27901 >Category: bin >Synopsis: Add bzip2 hook to newsyslog(8) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Jun 05 23:20:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Anders Nordby >Release: FreeBSD 4.3-STABLE i386 >Organization: Fluxpod Information eXchange >Environment: kern.osreldate: 430000 (4.3-STABLE) kern.osreldate: 500018 (5.0-20010420-CURRENT) >Description: This adds a bzip2 hook to newsyslog(8), to make it possible to have logs compressed using bzip2. Very useful to keep disk usage down, but: * Adds a dependancy to the bzip2 port. Which is specified in the man page, so I guess it's OK since it only uses the binary. * Uses /usr/local/bin/bzip2 directly. newsyslog will print where it tried to execute bzip2 from if it fails. I suppose I could add a possibility to override the path to bzip2 using an environment variable if that was of interest. This would of course be much easier if bzip2 was in the base system, but I guess there are reasons not to since it's not there already? Let me know what you think, and I'll change the patches if improvements are needed. Both gzip and bzip2 relates to environment variables GZIP and BZIP/BZIP2 for options respectively (this works with newsyslog too), so I guess using a BZIP2PATH to override the bzip2 location may be suitable? >How-To-Repeat: <Code/input/activities to reproduce the problem (multiple lines)> >Fix: In src/usr.sbin: http://home.nuug.no/~anders/newsyslog.diffs In src/etc: http://home.nuug.no/~anders/newsyslog.conf.diffs >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010606061313.4114D3C8E>