<?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: crond stopped in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/crond-stopped/m-p/3236271#M890601</link>
    <description>So far we have not able to collect anything useful from the cron log. This is a server system for special purpose application and usually no one is allowed to touch the system. The possibility of being killed by human is quite low. &lt;BR /&gt;&lt;BR /&gt;I've read some other posts about the apmd in Linux that may kill the crond if the system is running in battery mode (and crond is configured to be killed when low power).&lt;BR /&gt;&lt;BR /&gt;Can you relate anything like this in HPUX and I should pay attention to ?&lt;BR /&gt;&lt;BR /&gt;If not, we plan to write a script to restart the crond automatically. Any comment on it and any sample script for this purpose to share with us ?&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;CL</description>
    <pubDate>Thu, 01 Apr 2004 01:43:36 GMT</pubDate>
    <dc:creator>cl cheung</dc:creator>
    <dc:date>2004-04-01T01:43:36Z</dc:date>
    <item>
      <title>crond stopped</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crond-stopped/m-p/3236269#M890599</link>
      <description>Hello, we have a system of version HPUX 10.20. The crond was found disappeared for about once every few months. We have not changed anything on the system and the cron table. &lt;BR /&gt;We have found nothing related in the syslog.&lt;BR /&gt;&lt;BR /&gt;Can you suggest how to diagnose this problem ?&lt;BR /&gt;&lt;BR /&gt;Or if any patches applicable ?&lt;BR /&gt;&lt;BR /&gt;If it is not solvable, we plan to write another script to auto-restart crond if it goes away. Any advise ?&lt;BR /&gt;&lt;BR /&gt;Best regards&lt;BR /&gt;CL</description>
      <pubDate>Thu, 01 Apr 2004 01:28:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crond-stopped/m-p/3236269#M890599</guid>
      <dc:creator>cl cheung</dc:creator>
      <dc:date>2004-04-01T01:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: crond stopped</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crond-stopped/m-p/3236270#M890600</link>
      <description>I have never seen "cron" die of its own accord.  I would start by seeing if someone is actually killing it by mistake.&lt;BR /&gt; &lt;BR /&gt;Have a look at /var/adm/cron/log and see if you get any clue in there.</description>
      <pubDate>Thu, 01 Apr 2004 01:33:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crond-stopped/m-p/3236270#M890600</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2004-04-01T01:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: crond stopped</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crond-stopped/m-p/3236271#M890601</link>
      <description>So far we have not able to collect anything useful from the cron log. This is a server system for special purpose application and usually no one is allowed to touch the system. The possibility of being killed by human is quite low. &lt;BR /&gt;&lt;BR /&gt;I've read some other posts about the apmd in Linux that may kill the crond if the system is running in battery mode (and crond is configured to be killed when low power).&lt;BR /&gt;&lt;BR /&gt;Can you relate anything like this in HPUX and I should pay attention to ?&lt;BR /&gt;&lt;BR /&gt;If not, we plan to write a script to restart the crond automatically. Any comment on it and any sample script for this purpose to share with us ?&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;CL</description>
      <pubDate>Thu, 01 Apr 2004 01:43:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crond-stopped/m-p/3236271#M890601</guid>
      <dc:creator>cl cheung</dc:creator>
      <dc:date>2004-04-01T01:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: crond stopped</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crond-stopped/m-p/3236272#M890602</link>
      <description>With looking at the cronlog do check your cron scripts as whether any one of those scripts are the culprits.&lt;BR /&gt;&lt;BR /&gt;check which cron script is run that time interval.&lt;BR /&gt;&lt;BR /&gt;check any other messages in syslog.log like a syslogd stop.&lt;BR /&gt;&lt;BR /&gt;Revert</description>
      <pubDate>Thu, 01 Apr 2004 01:52:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crond-stopped/m-p/3236272#M890602</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2004-04-01T01:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: crond stopped</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crond-stopped/m-p/3236273#M890603</link>
      <description>check for the cron patch too&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www2.itrc.hp.com/service/patch/patchDetail.do?BC=patch.breadcrumb.main" target="_blank"&gt;http://www2.itrc.hp.com/service/patch/patchDetail.do?BC=patch.breadcrumb.main&lt;/A&gt;|patch.breadcrumb.search|&amp;amp;patchid=PHCO_27422&amp;amp;context=hpux:800:10:20</description>
      <pubDate>Thu, 01 Apr 2004 01:55:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crond-stopped/m-p/3236273#M890603</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2004-04-01T01:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: crond stopped</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crond-stopped/m-p/3236274#M890604</link>
      <description>Linux does kill things off if you start running out of virtual memory, HPUX doesn't, it just tends to just get really slow and potentially become unusable.  It is a different strategy, not worse, just different.&lt;BR /&gt; &lt;BR /&gt;First thing I would suggest for your "cron" monitoring job is not to run it from cron :)&lt;BR /&gt; &lt;BR /&gt;Secondly, I don't like the idea of monitoring cron using the "ps" there are already too many "ps" jobs running around.&lt;BR /&gt; &lt;BR /&gt;In your case, it would be a good idea if your script kept a log of each time it restarted cron.  That way, you might determine what it is that is killing cron and therefore not need to monitor it at all.&lt;BR /&gt; &lt;BR /&gt;I would actually get cron to sort of monitor itself.  Create a cron job to "touch" a file like "/tmp/cronalive" every five minutes(you could even "touch" your own shell script file). &lt;BR /&gt;&lt;BR /&gt;Then have your shell script a) exit if it is already running and b) check the modification time of the file and then sleep for 5 minutes.  If the file is over five minutes old then cron has probably died you can check at this point with "ps".&lt;BR /&gt; &lt;BR /&gt;The reason to get the script to exit if it is already running is so that you can get cron to attempt to restart it every five minutes too.  That way you get the script restarting cron if it dies and cron restarting the script if it dies.&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;</description>
      <pubDate>Thu, 01 Apr 2004 02:03:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crond-stopped/m-p/3236274#M890604</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2004-04-01T02:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: crond stopped</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crond-stopped/m-p/3236275#M890605</link>
      <description>Have you seen any pattern in the daemon dying? It could be a kill of a parent process in your cron scripts, for instance...&lt;BR /&gt;&lt;BR /&gt;I don't know if anyone tried it, but you could try using init to restart cron if needed...</description>
      <pubDate>Thu, 01 Apr 2004 02:55:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crond-stopped/m-p/3236275#M890605</guid>
      <dc:creator>Elmar P. Kolkman</dc:creator>
      <dc:date>2004-04-01T02:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: crond stopped</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crond-stopped/m-p/3236276#M890606</link>
      <description>&amp;gt;With looking at the cronlog do check your cron scripts as whether any one of those scripts are the culprits. check which cron script is run that time interval.&lt;BR /&gt;&lt;BR /&gt;Do you mean that a cron script can kill the cron daemon ? We have quite a number of script running but they do not kill any process purposely. &lt;BR /&gt;&lt;BR /&gt;&amp;gt; check any other messages in syslog.log like a syslogd stop.&lt;BR /&gt;&lt;BR /&gt;We do not find anything like the syslogd stop. In case we find it later, what  does it sugguest ?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Apr 2004 03:03:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crond-stopped/m-p/3236276#M890606</guid>
      <dc:creator>cl cheung</dc:creator>
      <dc:date>2004-04-01T03:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: crond stopped</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crond-stopped/m-p/3236277#M890607</link>
      <description>&amp;gt; Have you seen any pattern in the daemon dying? It could be a kill of a parent process in your cron scripts, for instance...&lt;BR /&gt;&lt;BR /&gt;There is no special pattern. The recent instance was happening at the time that the system was not busy. Looks like only the cron daemon was killed. The cron tasks are normal application tasks and do not have any code to kill other process purposely.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; I don't know if anyone tried it, but you could try using init to restart cron if needed... &lt;BR /&gt;&lt;BR /&gt;Can you elaborate how to use init to do this ? Is it safe and easy to do so ?</description>
      <pubDate>Thu, 01 Apr 2004 03:09:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crond-stopped/m-p/3236277#M890607</guid>
      <dc:creator>cl cheung</dc:creator>
      <dc:date>2004-04-01T03:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: crond stopped</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crond-stopped/m-p/3236278#M890608</link>
      <description>Is your system under memory pressure?&lt;BR /&gt; &lt;BR /&gt;Although Mark alleges that HP-UX never would kill crucial daemons such as cron, and in theory swap reservation should prevent this, I've experienced instances on few of our HP-UX boxes that occassionally did get under severe memory pressure where  indeed daemons such as cron or sendmail disappeared.&lt;BR /&gt;At least what HP pretend, and how theory prescribes it, you may find hints on the OS's memory management from the documentation in /usr/share/doc/mem_mgmt*</description>
      <pubDate>Thu, 01 Apr 2004 03:21:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crond-stopped/m-p/3236278#M890608</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2004-04-01T03:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: crond stopped</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crond-stopped/m-p/3236279#M890609</link>
      <description>What you should run from init is a script, with respawn, that will run forever, checking for the cron process (look in /sbin/init.d/cron for the check done when stopping cron for the surest way to do this) and start it if it's not running anymore. And of course log that you've done it.&lt;BR /&gt;&lt;BR /&gt;Because init will respawn it if the script stops, you're sure the monitoring always runs.&lt;BR /&gt;&lt;BR /&gt;Mind that cron will get into background by itself when started.&lt;BR /&gt;&lt;BR /&gt;Test your script and mind you don't have a path.</description>
      <pubDate>Thu, 01 Apr 2004 03:28:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crond-stopped/m-p/3236279#M890609</guid>
      <dc:creator>Elmar P. Kolkman</dc:creator>
      <dc:date>2004-04-01T03:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: crond stopped</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crond-stopped/m-p/3236280#M890610</link>
      <description>Ralph,&lt;BR /&gt; &lt;BR /&gt;I don't dispute that processes can die under heavy RAM pressure, I am saying that HPUX doesn't actively kill them off like Linux does.&lt;BR /&gt;  &lt;BR /&gt;Elmar,&lt;BR /&gt; &lt;BR /&gt;Thanks for reminding me of the benefits of inittab.  I often use this route myself but often forget it exists :)  The only problem I can see with using inittab for cron though is that some things like to restart cron and they will fail if init is respawning them.  Still could be the best option though.</description>
      <pubDate>Thu, 01 Apr 2004 04:02:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crond-stopped/m-p/3236280#M890610</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2004-04-01T04:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: crond stopped</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crond-stopped/m-p/3236281#M890611</link>
      <description>In the last instance the cron was stopped in non-busy hour. Looks like the memory issue is not related.&lt;BR /&gt;&lt;BR /&gt;So from the recommendations, I shall write a script, which installed in the inittab with respawn option, and monitor &amp;amp; restart cron from this script.&lt;BR /&gt;&lt;BR /&gt;I will try this out if no further comments/findings from you experts. &lt;BR /&gt;&lt;BR /&gt;Thanks a lot !</description>
      <pubDate>Thu, 01 Apr 2004 04:29:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crond-stopped/m-p/3236281#M890611</guid>
      <dc:creator>cl cheung</dc:creator>
      <dc:date>2004-04-01T04:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: crond stopped</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crond-stopped/m-p/3236282#M890612</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I saw crond faults on systems with /tmp 100% full. Could you check this on the suspicious system ?&lt;BR /&gt;Regards</description>
      <pubDate>Thu, 01 Apr 2004 05:05:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crond-stopped/m-p/3236282#M890612</guid>
      <dc:creator>Victor Fridyev</dc:creator>
      <dc:date>2004-04-01T05:05:37Z</dc:date>
    </item>
  </channel>
</rss>

