Operating System - HP-UX
1826062 Members
4167 Online
109690 Solutions
New Discussion

Re: logrotate for HPUX 11.23

 
SOLVED
Go to solution
Rick Garland
Honored Contributor

logrotate for HPUX 11.23

Hi all:

Have ia64 systems running HPUX 11.23.
I have been out to the gatekeep site looking for logrotate but it only goes to 11.00

Any updates available or do I need to rool my own?

Thanks

16 REPLIES 16
Patrick Wallek
Honored Contributor

Re: logrotate for HPUX 11.23

Rick Garland
Honored Contributor

Re: logrotate for HPUX 11.23

Patrick:

The link is for Debian.
Is this for example on creating my own?


Patrick Wallek
Honored Contributor
Solution

Re: logrotate for HPUX 11.23

According to the hpux.connect.org.uk site, the URL I gave is the main homepage for logrotate.

There is the link for ia64 in the download section. I don't know if that is for Debian Linux on IA64 or hp-ux or what.

I guess if all else files, you can always download the source and compile your own.
Rick Garland
Honored Contributor

Re: logrotate for HPUX 11.23

I will try.

Thanks
Geoff Wild
Honored Contributor

Re: logrotate for HPUX 11.23

Source is also here:

http://hpux.ee.ualberta.ca/hppd/hpux/hpux/Sysadmin/logrotate-2.5/

You could try re-compiling it.

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Rick Garland
Honored Contributor

Re: logrotate for HPUX 11.23

Without having the gcc and other tools, the logrotate utility will not install.
Looking for the 'bsdinst' to complete the process.
Rick Garland
Honored Contributor

Re: logrotate for HPUX 11.23

There are some GNU utils in addition to the gcc, binutils, etc. that need to be installed for this to work.

I cannot add these packages onto the ia64 per policies.

Any other idea?

Geoff Wild
Honored Contributor

Re: logrotate for HPUX 11.23

Sorry Rick - can't help any further - if I had an Itanium system - I'd compile it for you....I do have 11iv2 on parisc - don't know if that would help you or not...


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Rick Garland
Honored Contributor

Re: logrotate for HPUX 11.23

Thanks Geoff.

Working on rolling my own at this point.
Geoff Wild
Honored Contributor

Re: logrotate for HPUX 11.23

Rick - I now have an Itanium workstation - was able to compile logrotate - but had to install manually - as I can't find bsdinst for HP-UX anywhere....

The make install creates the following directories:

/opt/logrotate/bin
/opt/logrotate/man
/opt/logrotate/man/man8

I copied logrotate to /opt/logrotate/bin and also had to create /opt/logrotate/adm/

I run it like this from cron:

#
# logrotate
#
0 0 * * * /opt/logrotate/bin/logrotate /etc/logrotate.conf >/tmp/logrotate.cron 2>&1


I havn't figured out how to install the man page - make -n install says it wants to do this:

bsdinst -c -m 644 logrotate.8 /opt/logrotate/man/man`echo logrotate.8 | sed "s/.*\.//"`/logrotate.8

Rgds...Geoff


Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Rick Garland
Honored Contributor

Re: logrotate for HPUX 11.23

Alright Geoff!

Any chance of getting a copy of that binary?

Thanks

Geoff Wild
Honored Contributor

Re: logrotate for HPUX 11.23

Hey - found bsdinst - it is in the imake package:

http://hpux.ee.ualberta.ca/hppd/hpux/X11/Core/imake-6.00/

If you want the binary - email me from http://www.met.ca

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Geoff Wild
Honored Contributor

Re: logrotate for HPUX 11.23

THought it would be good to also upload it here - as it is quite small.

It is in "pre depot" format...just gunzip/untar and read the readme.txt file.

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
CFI-beheer
Advisor

Re: logrotate for HPUX 11.23

Hi all,

Here a fully grown depot for 11.23
It might work on all other OS'sesss.

I have added two things :
a logrotate.status file in de /opt/logrotate/adm
This is the internal db file for logrotate

And i added /opt/logrotate/etc with the logrotate.conf file.
this config file is used by logrotate.

You can add in the cron the following entry :
0 16 * * 0 /opt/logrotate/bin/logrotate /opt/logrotate/etc/logrotate.conf

Have phun
CFI-beheer
Advisor

Re: logrotate for HPUX 11.23

mmm, i was to quick with the depot.

When it is installed, and you execute logrotate it will give an error :
"error: error reading top line of /opt/logrotate/adm/logrotate.status"

Just delete this file from the adm dir, and exec again.
Then the file we be recreated.

CFI-beheer
Advisor

Re: logrotate for HPUX 11.23

Here a new depot...