<?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: Cron does not stop in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-does-not-stop/m-p/3734507#M255091</link>
    <description>cron should not be stopped to prevent a job from running. Just use crontab -l to create a local file to edit the current cron set. Then comment out the job you do not want to run and resubmit this cile to cron using crontab.</description>
    <pubDate>Sat, 18 Feb 2006 23:12:35 GMT</pubDate>
    <dc:creator>Bill Hassell</dc:creator>
    <dc:date>2006-02-18T23:12:35Z</dc:date>
    <item>
      <title>Cron does not stop</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-does-not-stop/m-p/3734505#M255089</link>
      <description>Folks,&lt;BR /&gt;I need to stop the cron job fro applying application patches. Every time I try to stop the cron using "/sbin/init.d/cron stop", the cron daemon does not stop!&lt;BR /&gt;Is it b'coz that at that point in time there are child processes owned by cron that the daemon is waiting to complete before shutting itself down ?&lt;BR /&gt;To overcome this situation I implmented a ksh function that first attempts a graceful shutdown of cron daemon (/sbin/init.d/cron stop). If  cron daemon is still found to be running then function sends kill -9 on the PID of the cron daemon. Are there any negative outcomes of this approach ?</description>
      <pubDate>Sat, 18 Feb 2006 21:32:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-does-not-stop/m-p/3734505#M255089</guid>
      <dc:creator>Mukul_Upadhyaya</dc:creator>
      <dc:date>2006-02-18T21:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: Cron does not stop</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-does-not-stop/m-p/3734506#M255090</link>
      <description>The startup script clearly says that it shouldnot be stopped. But you can kill it.Note that no jobs will run during the time it was stopped.&lt;BR /&gt;&lt;BR /&gt;Also, why kill -9 on first attempt?? You can safely,do as follows.&lt;BR /&gt;&lt;BR /&gt;kill -15&lt;BR /&gt;kill -1&lt;BR /&gt;kill -2&lt;BR /&gt;kill -3&lt;BR /&gt;kill -11&lt;BR /&gt;&lt;BR /&gt; and then kill -9. kill -11is equallyeffective and does memory cleanup that kill -15 doesnot do.</description>
      <pubDate>Sat, 18 Feb 2006 23:12:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-does-not-stop/m-p/3734506#M255090</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2006-02-18T23:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: Cron does not stop</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-does-not-stop/m-p/3734507#M255091</link>
      <description>cron should not be stopped to prevent a job from running. Just use crontab -l to create a local file to edit the current cron set. Then comment out the job you do not want to run and resubmit this cile to cron using crontab.</description>
      <pubDate>Sat, 18 Feb 2006 23:12:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-does-not-stop/m-p/3734507#M255091</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2006-02-18T23:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: Cron does not stop</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-does-not-stop/m-p/3734508#M255092</link>
      <description>Hi;&lt;BR /&gt;&lt;BR /&gt;you no need to stop cron service in terms to stop any running job by cron. Do the follwoing step&lt;BR /&gt;&lt;BR /&gt;#crontab -e (edit the file and comment the line for the service you want to stop)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;cheers&lt;BR /&gt;indrajit</description>
      <pubDate>Sun, 19 Feb 2006 17:57:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-does-not-stop/m-p/3734508#M255092</guid>
      <dc:creator>Indrajit_1</dc:creator>
      <dc:date>2006-02-19T17:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Cron does not stop</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-does-not-stop/m-p/3734509#M255093</link>
      <description>Shalom Mukul,&lt;BR /&gt;&lt;BR /&gt;As usual Bill is right. Further, if you can't get the cron daemon to stop, you may be spawning it in /etc/inittab &lt;BR /&gt;&lt;BR /&gt;Thats a bad idea and you should check inittab and make sure what I'm guessing happened in fact did not happen.&lt;BR /&gt;&lt;BR /&gt;cron daemon is started by root, process 1. A kill -9 will have no effect. If it was permitted to kill process 1, then your system would stop.&lt;BR /&gt;&lt;BR /&gt;kill -9 just so you understand means kill the process and the parent. Its a waste of time to use it on processes whos parent id (PPID) is 1.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Sun, 19 Feb 2006 21:47:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-does-not-stop/m-p/3734509#M255093</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-02-19T21:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: Cron does not stop</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-does-not-stop/m-p/3734510#M255094</link>
      <description>&lt;BR /&gt;kill -9 does not mean kill the process and its parent.  And, it still works fine if the PPID is 1.&lt;BR /&gt;&lt;BR /&gt;You can use ps -ef to track down children of cron to see why it might not be stopping.  If you have jobs spawned by cron that don't exit, you should track those down as they can cause problems.&lt;BR /&gt;&lt;BR /&gt;I agree with others that it's not customary to stop cron for an application upgrade.  You're better off editing crontab entries if possible.  But, stopping cron should work if you want it to.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Feb 2006 09:51:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-does-not-stop/m-p/3734510#M255094</guid>
      <dc:creator>Doug Kratky</dc:creator>
      <dc:date>2006-02-20T09:51:53Z</dc:date>
    </item>
  </channel>
</rss>

