Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/logrotate/logrotate

The logrotate utility is designed to simplify the administration of log files on a system which generates a lot of log files.
https://github.com/logrotate/logrotate

Last synced: 4 days ago
JSON representation

The logrotate utility is designed to simplify the administration of log files on a system which generates a lot of log files.

Awesome Lists containing this project

README

        

How to build and install logrotate on HP-UX 11.00 (these instructions should
also work on HP-UX 10.20):

1. Obtain and install the following GNU packages for HP-UX:
binutils 2.9.1
gcc 2.95.2
make 3.78.1
I used the packages at the Software Porting and Archive Centre for HP-UX
at http://hpux.cs.utah.edu/.

Obtain and install the following GNU/Linux to HP-UX Porting package:
libhplx library
See http://devresource.hp.com/LPK/index.html for downloads.
This library is needed to provide the ??? function.

2. Obtain, build, and install popt 1.4 (there doesn't seem to be a build at
the Porting Centre.)
See ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.0.x/popt-1.6.4.tar.gz
Install it into the directory of your choice (i.e.
"./configure --prefix=/opt/popt").

3. Build logrotate, telling it where to find popt and hplx installation. The
POPT_DIR defaults to /usr/local and HPLX_DIR defaults to /usr/local/hplx:
gmake POPT_DIR=/usr/local HPLX_DIR=/usr/local/hplx

4. Install logrotate into your desired directory (BASEDIR defaults to
/usr/local):
gmake install BASEDIR=/usr/local

5. Copy the configuration files into your desired location.
cp examples/logrotate.conf /etc/logrotate.conf
mkdir /etc/logrotate.d
cp examples/?tmp /etc/logrotate.d

6. Set up a cron job to run logrotate daily. See examples/logrotate.cron.

7. I also recommend setting CLEAN_ADM=0 in /etc/rc.config.d/clean, and
setting up an init script to use logrotate for this instead. This way,
logrotate manages all logfile pruning.

Questions, comments, abuse to:
Paul D. Gear ,
Danial M. Howard ,