<?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: How can cron start itself? in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/how-can-cron-start-itself/m-p/5116709#M49847</link>
    <description>If you are using Red Hat Linux you can stop cron by the following command:&lt;BR /&gt;&lt;BR /&gt;# service crond stop&lt;BR /&gt;&lt;BR /&gt;and to stop cron in all runlevel you can use the following command:&lt;BR /&gt;&lt;BR /&gt;#chkconfig crond off&lt;BR /&gt;&lt;BR /&gt;   So after the reboot also cron will be in a stoped state.</description>
    <pubDate>Tue, 01 Jul 2008 05:42:19 GMT</pubDate>
    <dc:creator>Kaps_2</dc:creator>
    <dc:date>2008-07-01T05:42:19Z</dc:date>
    <item>
      <title>How can cron start itself?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-can-cron-start-itself/m-p/5116704#M49842</link>
      <description>Hello all,&lt;BR /&gt;First time I ever seen this on one of our Linux support servers.&lt;BR /&gt;&lt;BR /&gt;$ ps -ef | grep cron&lt;BR /&gt;root      1991     1  0  2007 ?        00:00:15 crond&lt;BR /&gt;root     31933  1991  0 Jun24 ?        00:00:00 crond&lt;BR /&gt;boucherr 18032 17842  0 11:45 pts/1    00:00:00 grep cron&lt;BR /&gt;&lt;BR /&gt;What could trigger cron to start itself?&lt;BR /&gt;Which log can I check to see when/how/why the second cron deamon was started?</description>
      <pubDate>Mon, 30 Jun 2008 14:04:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-can-cron-start-itself/m-p/5116704#M49842</guid>
      <dc:creator>Raynald Boucher</dc:creator>
      <dc:date>2008-06-30T14:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: How can cron start itself?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-can-cron-start-itself/m-p/5116705#M49843</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;Your system already auto starts cron with a softlink in /sbin/rc3.d or /sbin/rc2.d that points to /sbin/init.d/crond (or cron)&lt;BR /&gt;&lt;BR /&gt;You can write yourself a script that does this, but cron can't be used to start itself.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 30 Jun 2008 16:41:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-can-cron-start-itself/m-p/5116705#M49843</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2008-06-30T16:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: How can cron start itself?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-can-cron-start-itself/m-p/5116706#M49844</link>
      <description>I agree, but in the "ps" output I supplied, the Jun 24th "crond" process has another "crond" as parent pid.&lt;BR /&gt;&lt;BR /&gt;I'm trying to find out how it happenned.&lt;BR /&gt;&lt;BR /&gt;Stopping "cron" using the init.d script stopped the 1991 process but not the other.&lt;BR /&gt;&lt;BR /&gt;RayB</description>
      <pubDate>Mon, 30 Jun 2008 17:03:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-can-cron-start-itself/m-p/5116706#M49844</guid>
      <dc:creator>Raynald Boucher</dc:creator>
      <dc:date>2008-06-30T17:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: How can cron start itself?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-can-cron-start-itself/m-p/5116707#M49845</link>
      <description>In any unix-like system, new processes are normally created by fork() and exec() system calls. &lt;BR /&gt;&lt;BR /&gt;For example, when cron starts up a new process, it essentially branches off a copy of itself, then the copy replaces itself with whatever this particular cron job is supposed to be running.&lt;BR /&gt;&lt;BR /&gt;It's possible that you simply caught cron "in the act" of forking itself. But the start time of the process 31933 is shown as "Jun24" i.e. a date, not a time. This indicates the process is older than 24 hours, so something has prevented the child-cron from performing the exec() syscall.&lt;BR /&gt;&lt;BR /&gt;A NFS access problem at exactly the wrong moment might stop the exec() syscall and leave the child-cron in this state. A disk that's abruptly died or stuck in an infinite-retry loop might have similar results, if the disk is local.&lt;BR /&gt;&lt;BR /&gt;Try getting some more facts. Look into /var/adm/cron/log to find out what was the command cron was trying to execute. When you find the line that refers to process number 31933 and has the correct date, look at the _previous_ line (it should begin with "CMD:") for the command line. Then find out on which disk the command was located and examine the health of that disk.&lt;BR /&gt;&lt;BR /&gt;Also check the syslog and the dmesg listing. If the server is critically low on memory, it sometimes causes things to fail in non-obvious ways.&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Mon, 30 Jun 2008 17:19:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-can-cron-start-itself/m-p/5116707#M49845</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2008-06-30T17:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: How can cron start itself?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-can-cron-start-itself/m-p/5116708#M49846</link>
      <description>Thanks Matti.&lt;BR /&gt;&lt;BR /&gt;I couldn't find process 31933 in the /var/log/cron but found 31934 which checks on other systems being up at a time when we were experiencing network hiccups.&lt;BR /&gt;&lt;BR /&gt;I'll pass this thread on to my coworkers so they know what to do next time this happens.&lt;BR /&gt;&lt;BR /&gt;Take care all&lt;BR /&gt;&lt;BR /&gt;RayB</description>
      <pubDate>Mon, 30 Jun 2008 19:04:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-can-cron-start-itself/m-p/5116708#M49846</guid>
      <dc:creator>Raynald Boucher</dc:creator>
      <dc:date>2008-06-30T19:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: How can cron start itself?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-can-cron-start-itself/m-p/5116709#M49847</link>
      <description>If you are using Red Hat Linux you can stop cron by the following command:&lt;BR /&gt;&lt;BR /&gt;# service crond stop&lt;BR /&gt;&lt;BR /&gt;and to stop cron in all runlevel you can use the following command:&lt;BR /&gt;&lt;BR /&gt;#chkconfig crond off&lt;BR /&gt;&lt;BR /&gt;   So after the reboot also cron will be in a stoped state.</description>
      <pubDate>Tue, 01 Jul 2008 05:42:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-can-cron-start-itself/m-p/5116709#M49847</guid>
      <dc:creator>Kaps_2</dc:creator>
      <dc:date>2008-07-01T05:42:19Z</dc:date>
    </item>
  </channel>
</rss>

