<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Logrotate in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/logrotate/m-p/3914815#M477130</link>
    <description>It's a bit goofy. The first time it runs, it doesn't rotate the log. It just updates the status file. The next scheduled run, it will actually perform the rotation. On the newer versions, there's a -f option, I think, that would force a rotation, but that option isn't available on the ancient version on the P&amp;amp;A site.</description>
    <pubDate>Mon, 18 Dec 2006 16:00:28 GMT</pubDate>
    <dc:creator>Jeff_Traigle</dc:creator>
    <dc:date>2006-12-18T16:00:28Z</dc:date>
    <item>
      <title>Logrotate</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logrotate/m-p/3914812#M477127</link>
      <description>Can anybody list the steps involved in configuring logrotate for hp-ux 11.0?  I get the following error&lt;BR /&gt;&lt;BR /&gt;error reading top line of /opt/logrotate/adm/logrotate.status&lt;BR /&gt;&lt;BR /&gt;( I didn't have a logrotate.status file, just touched one - not sure what the syntax of this state file is).  My /etc/logrotate.conf file has the foll lines&lt;BR /&gt;&lt;BR /&gt;#Sample Log rotate Configuration file&lt;BR /&gt;/var/log/syslog/syslog.log {&lt;BR /&gt;          rotate 5&lt;BR /&gt;          weekly &lt;BR /&gt;          postrotate&lt;BR /&gt;                                    /sbin/killall -HUP syslogd&lt;BR /&gt;          endscript&lt;BR /&gt;      }&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;Geetha.</description>
      <pubDate>Mon, 18 Dec 2006 14:43:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logrotate/m-p/3914812#M477127</guid>
      <dc:creator>Geetha_1</dc:creator>
      <dc:date>2006-12-18T14:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: Logrotate</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logrotate/m-p/3914813#M477128</link>
      <description>As long as /opt/logrotate/adm exists, logrotate should create the status file on it's own. (The depot on the Porting and Archive site doesn't create this directory.) On my systems, the permissions are:&lt;BR /&gt;&lt;BR /&gt;drwxr-x--x   2 root       sys             96 Feb 14  2006 adm&lt;BR /&gt;&lt;BR /&gt;Status file was created with these permissions:&lt;BR /&gt;&lt;BR /&gt;-rw-rw-rw-   1 root       sys           2088 Dec 17 23:59 logrotate.status&lt;BR /&gt;&lt;BR /&gt;First line of the status file is:&lt;BR /&gt;&lt;BR /&gt;logrotate state -- version 1</description>
      <pubDate>Mon, 18 Dec 2006 14:57:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logrotate/m-p/3914813#M477128</guid>
      <dc:creator>Jeff_Traigle</dc:creator>
      <dc:date>2006-12-18T14:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: Logrotate</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logrotate/m-p/3914814#M477129</link>
      <description>Thanks, Jeff!  I got rid of the error - but I tested it out and it doesn't seem to rotate the syslog. &lt;BR /&gt;&lt;BR /&gt;My /etc/logrotate.conf&lt;BR /&gt;&lt;BR /&gt;#Sample Log rotate Configuration file&lt;BR /&gt;/var/adm/syslog/syslog.log {&lt;BR /&gt;          rotate 5&lt;BR /&gt;          daily &lt;BR /&gt;          postrotate&lt;BR /&gt;          /sbin/killall -HUP syslogd&lt;BR /&gt;          endscript&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;what is wrong?&lt;BR /&gt;&lt;BR /&gt;crontab entry&lt;BR /&gt;&lt;BR /&gt;# Logrotate&lt;BR /&gt;45 14  * * * /opt/logrotate/bin/logrotate /etc/logrotate.conf &amp;gt;/tmp/logrotate.cron 2&amp;gt;&amp;amp;1&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Dec 2006 15:50:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logrotate/m-p/3914814#M477129</guid>
      <dc:creator>Geetha_1</dc:creator>
      <dc:date>2006-12-18T15:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: Logrotate</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logrotate/m-p/3914815#M477130</link>
      <description>It's a bit goofy. The first time it runs, it doesn't rotate the log. It just updates the status file. The next scheduled run, it will actually perform the rotation. On the newer versions, there's a -f option, I think, that would force a rotation, but that option isn't available on the ancient version on the P&amp;amp;A site.</description>
      <pubDate>Mon, 18 Dec 2006 16:00:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logrotate/m-p/3914815#M477130</guid>
      <dc:creator>Jeff_Traigle</dc:creator>
      <dc:date>2006-12-18T16:00:28Z</dc:date>
    </item>
    <item>
      <title>Re: Logrotate</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logrotate/m-p/3914816#M477131</link>
      <description>Just a side note - that syntax for killall is not appropriate for HP-UX. That's a Linux-specific syntax and using it on HP-UX will do nothing if you're lucky and could have dire consequences if you aren't. What you really want is probably something like:&lt;BR /&gt;&lt;BR /&gt;kill -HUP `cat /var/run/syslog.pid`&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Dec 2006 16:23:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logrotate/m-p/3914816#M477131</guid>
      <dc:creator>Heironimus</dc:creator>
      <dc:date>2006-12-18T16:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: Logrotate</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logrotate/m-p/3914817#M477132</link>
      <description>Thanks!  For the tip and the correction on the killall syntax.</description>
      <pubDate>Tue, 19 Dec 2006 13:47:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logrotate/m-p/3914817#M477132</guid>
      <dc:creator>Geetha_1</dc:creator>
      <dc:date>2006-12-19T13:47:05Z</dc:date>
    </item>
  </channel>
</rss>

