- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Logrotate error in hp-ux 11.23
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-26-2009 06:10 AM
тАО03-26-2009 06:10 AM
Logrotate error in hp-ux 11.23
I receive the following error :-
error: /etc/logrotate.conf:22 unknown option 'compresscmd' -- ignoring line
error: /etc/logrotate.conf:22 unexpected text
logrotate version installed is 2.5
Contents of /etc/logrotate.conf :-
daily
# don't create new (empty) log files after rotating old ones
nocreate
# don't try rotating empty log files
notifempty
# uncomment this if you want your log files compressed
compress
# use compress
compresscmd /usr/bin/compress
# All non-os customizations should be in this directory
include /etc/logrotate_sql.conf
Contents of /etc/logrotate_sql.conf :-
/sql/network/log/sql01.log {
rotate 52
delaycompress
}
I have similar setup working fine in hp-ux 1.11 server.
Note : /usr/bin/compress is very much available in the location specified.
Can anyone help me to overcome this problem?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-26-2009 06:17 AM
тАО03-26-2009 06:17 AM
Re: Logrotate error in hp-ux 11.23
use
compress /usr/bin/compress
or gzip
# uncomment this if you want your log files compressed
compress
Uncomment this one
# use compress
compresscmd /usr/bin/compress
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-26-2009 06:21 AM
тАО03-26-2009 06:21 AM
Re: Logrotate error in hp-ux 11.23
# uncomment this if you want your log files compressed
compress
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-26-2009 07:17 AM
тАО03-26-2009 07:17 AM
Re: Logrotate error in hp-ux 11.23
compress
which uses gzip for compression.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-26-2009 07:27 AM
тАО03-26-2009 07:27 AM
Re: Logrotate error in hp-ux 11.23
Can you specify where you obtained this software and if its certified for HP-UX 11.23.
If you compiled it, there may be errors in the compile log that explain this behavior.
if as advised you use gzip for compression you will get a slightly better compression ratio, and smaller backups. gzip is i/o and cpu intensive while running.
While either compression utility is running, there needs to be adequate space because during the run process there are two copies of the file until the compression is complete and the original file is removed.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-26-2009 09:09 AM
тАО03-26-2009 09:09 AM
Re: Logrotate error in hp-ux 11.23
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-26-2009 09:11 AM
тАО03-26-2009 09:11 AM