1834447 Members
2778 Online
110067 Solutions
New Discussion

man pages for logrotate

 
SOLVED
Go to solution
Ratzie
Super Advisor

man pages for logrotate

I have just installed the logrotate-2.5-sd-11.00.depot that I downloaded from the HP-UX Porting and Archive Centre.

Everything installed correctly with out any errors, I used the swinstall tool.

But, when I try to do a man on logrotate it tells me there are no manual entries for logrotate.
I have logged out and logged in numerous times.

Did I do something wrong, is it the right depot.
# uname -a
HP-UX name B.11.00 U 9000/785 2001107332 unlimited-user license

3 REPLIES 3
Michael Tully
Honored Contributor
Solution

Re: man pages for logrotate

I am not familiar with this product, but where the software is loaded assuming /opt/logrotate, is there a man directory? If so has this path been added to $MANPATH If it hasn't you can add it manually to the /etc/MANPATH file using other entries as an example.

$ echo $MANPATH
Anyone for a Mutiny ?
Michael Tully
Honored Contributor

Re: man pages for logrotate

I have just installed that product on a test system of mine, and certainly it does load the man page for it (/opt/logrotate/man), but does not add the man page path into /etc/MANPATH
I added the entry manually, logged in again and can see the man page.
Anyone for a Mutiny ?
Bill Hassell
Honored Contributor

Re: man pages for logrotate

This is a common oversight when depots are put together. Many packages will keep the man pages in the /opt/app-name/docs directory and the MANPATH value is not updated. As mentioned, just add the path to end of the MANPATH file. Note! There must one and only one line inn MANPATH. When you edit the file it will appear to be multipkle lines but type $ and you'll see that the end of the first line is also the end of the file. Just type A to append to the end of the line.

Even if the file /etc/MANPATH does have the new man page location, your current MANPATH variable needs to be updated. Either logout and login again, or do what /etc/profile does:

export MANPATH=$(cat /etc/MANPATH)


Bill Hassell, sysadmin