<?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: stopping cron in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/stopping-cron/m-p/2436766#M5412</link>
    <description>No can do. "cron" respawns (presumably via init).&lt;BR /&gt;&lt;BR /&gt;I had been using /sbin/init.d/cron stop|start ... this just issues the self-same kill to the cron PID.&lt;BR /&gt;&lt;BR /&gt;I need another way.</description>
    <pubDate>Tue, 15 Aug 2000 21:21:22 GMT</pubDate>
    <dc:creator>Phil Corchary</dc:creator>
    <dc:date>2000-08-15T21:21:22Z</dc:date>
    <item>
      <title>stopping cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stopping-cron/m-p/2436764#M5410</link>
      <description>I need to script cold-backups while at run-level 3. One of the first things I want to do is make sure that no cron jobs run during the backup. How?&lt;BR /&gt;&lt;BR /&gt;Just stopping cron using the init script won't work, as it respawns. Should I move the crontabs?&lt;BR /&gt;&lt;BR /&gt;Suggestions - or am I going about this wrong?</description>
      <pubDate>Tue, 15 Aug 2000 21:11:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stopping-cron/m-p/2436764#M5410</guid>
      <dc:creator>Phil Corchary</dc:creator>
      <dc:date>2000-08-15T21:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: stopping cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stopping-cron/m-p/2436765#M5411</link>
      <description>Can get the PID for cron via the ps -ef | grep cron.&lt;BR /&gt;Issue a kill command for the PID. (Avoid kill -9).&lt;BR /&gt;To restart, can issue the /usr/sbin/cron command</description>
      <pubDate>Tue, 15 Aug 2000 21:13:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stopping-cron/m-p/2436765#M5411</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2000-08-15T21:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: stopping cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stopping-cron/m-p/2436766#M5412</link>
      <description>No can do. "cron" respawns (presumably via init).&lt;BR /&gt;&lt;BR /&gt;I had been using /sbin/init.d/cron stop|start ... this just issues the self-same kill to the cron PID.&lt;BR /&gt;&lt;BR /&gt;I need another way.</description>
      <pubDate>Tue, 15 Aug 2000 21:21:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stopping-cron/m-p/2436766#M5412</guid>
      <dc:creator>Phil Corchary</dc:creator>
      <dc:date>2000-08-15T21:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: stopping cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stopping-cron/m-p/2436767#M5413</link>
      <description>Is it in the inittab?</description>
      <pubDate>Tue, 15 Aug 2000 22:26:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stopping-cron/m-p/2436767#M5413</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2000-08-15T22:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: stopping cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stopping-cron/m-p/2436768#M5414</link>
      <description>Thats a bit wiered Ive checked a few machines and cannot find cron in inittab, there are a few good reasons for doing this actually, but personally I would want to know why cron is dying before I respawn it.&lt;BR /&gt;The best way to go is probably take it out of inittab and then you can simply do&lt;BR /&gt;&lt;BR /&gt;/sbin/init.d/cron stop&lt;BR /&gt;/sbin/init.d/cron start&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Aug 2000 22:52:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stopping-cron/m-p/2436768#M5414</guid>
      <dc:creator>Anthony Goonetilleke</dc:creator>
      <dc:date>2000-08-15T22:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: stopping cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stopping-cron/m-p/2436769#M5415</link>
      <description>Hi,&lt;BR /&gt;Stop the cron issuing&lt;BR /&gt;/sbin/init.d/cron stop &lt;BR /&gt;and there is no chance of respawning of cron once again.&lt;BR /&gt;&lt;BR /&gt;Once ur work is done, restart the cron by &lt;BR /&gt;/sbin/init.d/cron start.&lt;BR /&gt;&lt;BR /&gt;I have done this atleast thousand times, so I assure u to go ahead.</description>
      <pubDate>Wed, 16 Aug 2000 01:18:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stopping-cron/m-p/2436769#M5415</guid>
      <dc:creator>Ramesh Donti</dc:creator>
      <dc:date>2000-08-16T01:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: stopping cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stopping-cron/m-p/2436770#M5416</link>
      <description>If cron is in the inittab, comment it out, kill it and the start it again by either putting it back into inittab and SIGHUP'ing init or /sbin/init.d/cron start&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Aug 2000 05:33:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stopping-cron/m-p/2436770#M5416</guid>
      <dc:creator>Ralf Hildebrandt</dc:creator>
      <dc:date>2000-08-16T05:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: stopping cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stopping-cron/m-p/2436771#M5417</link>
      <description>Hi Dear,&lt;BR /&gt;&lt;BR /&gt;#./sbin/init.d/stop cron&lt;BR /&gt;Do your Job &lt;BR /&gt;#./sbin/init.d/start cron&lt;BR /&gt;&lt;BR /&gt;Go Ahead it`s really very safe and right way.&lt;BR /&gt;Rgds&lt;BR /&gt;Jaikishan</description>
      <pubDate>Wed, 16 Aug 2000 10:27:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stopping-cron/m-p/2436771#M5417</guid>
      <dc:creator>Jaikishan_1</dc:creator>
      <dc:date>2000-08-16T10:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: stopping cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stopping-cron/m-p/2436772#M5418</link>
      <description>Now its not elegant but works, until you have solved you cron start/stop,&lt;BR /&gt;You can always move what you find in&lt;BR /&gt;/var/spool/cron/crontabs to somewhere else, and put all back after you backup has finished&lt;BR /&gt;No?&lt;BR /&gt;Just a suggestion...&lt;BR /&gt;&lt;BR /&gt;Victor</description>
      <pubDate>Wed, 16 Aug 2000 10:31:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stopping-cron/m-p/2436772#M5418</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2000-08-16T10:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: stopping cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stopping-cron/m-p/2436773#M5419</link>
      <description>There is actually a script in place from a previous SysAdmin that checks/restarts cron. I don't know why, or what the history behind it is, therefor I'm reluctant to comment it out of inittab.&lt;BR /&gt;&lt;BR /&gt;I think the last suggestion of moving crontab is maybe the best.&lt;BR /&gt;&lt;BR /&gt;philc</description>
      <pubDate>Wed, 16 Aug 2000 15:01:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stopping-cron/m-p/2436773#M5419</guid>
      <dc:creator>Phil Corchary</dc:creator>
      <dc:date>2000-08-16T15:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: stopping cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stopping-cron/m-p/2436774#M5420</link>
      <description>It is not a really way to go if you don't know way.&lt;BR /&gt;Anthony Goonetilleke is right. In a standard machine you do not have cron (and I see not reason to have it in inittab). But, to try to debug it, would you like to post the inittab line about cron?</description>
      <pubDate>Wed, 16 Aug 2000 15:04:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stopping-cron/m-p/2436774#M5420</guid>
      <dc:creator>Antoanetta Naghiu</dc:creator>
      <dc:date>2000-08-16T15:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: stopping cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stopping-cron/m-p/2436775#M5421</link>
      <description>Move the crontabs for ALL users. Unless you go through each user cron entry how are you going to know if something is be accessed during the backups?&lt;BR /&gt;&lt;BR /&gt;Any chance on checking the script that is called from inittab?</description>
      <pubDate>Wed, 16 Aug 2000 15:04:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stopping-cron/m-p/2436775#M5421</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2000-08-16T15:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: stopping cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stopping-cron/m-p/2436776#M5422</link>
      <description>Here is the line from /etc/inittab:&lt;BR /&gt;# grep cron /etc/inittab&lt;BR /&gt;cchk:234:respawn:/usr/bin/sh /home/bvb/croncheck.sh &amp;gt; /tmp/croncheck.log 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;Here is the script:&lt;BR /&gt;# more croncheck.sh&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;# croncheck.sh: by XXXXXXXXXXXXXXX, put in place on 3/29/00&lt;BR /&gt;# Special purpose script, designed to check/restart /usr/sbin/cron only.&lt;BR /&gt;# Designed to be run from /etc/init; inittab entry might look like:&lt;BR /&gt;# cchk:234:respawn:/usr/bin/sh /home/bvb/croncheck.sh &amp;gt; /tmp/croncheck.log 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;while true&lt;BR /&gt;do&lt;BR /&gt; ps -ef | grep -v grep | grep /usr/sbin/cron &amp;gt;/dev/null&lt;BR /&gt; if [ $? -ne 0 ]&lt;BR /&gt;  then&lt;BR /&gt;  echo "$0: `date` /usr/sbin/cron not running, restarting now"&lt;BR /&gt;  echo "$0: `date` /usr/sbin/cron not running, restarting now" | mail root&lt;BR /&gt;  /usr/sbin/cron &amp;amp;&lt;BR /&gt;  fi&lt;BR /&gt; sleep 120  # check every five minutes&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;I agree that I would need to move all user crontabs (there really should only be root and oraprod on these systems).&lt;BR /&gt;&lt;BR /&gt;There's no mystery about the initab script or HOW it works, just why. I'm told by manager that there may have been an issue on 1 (or 4) systems with cron dying, but no one is sure.&lt;BR /&gt;&lt;BR /&gt;philc</description>
      <pubDate>Wed, 16 Aug 2000 15:20:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stopping-cron/m-p/2436776#M5422</guid>
      <dc:creator>Phil Corchary</dc:creator>
      <dc:date>2000-08-16T15:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: stopping cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stopping-cron/m-p/2436777#M5423</link>
      <description>I agree with a previous post. Why is cron dying on 1 (or 4) machines?&lt;BR /&gt;Do the syslogs indicate anything? cron should not be dying out. The entry in the inittab is not really necessary if you know why the cron is dying. &lt;BR /&gt;&lt;BR /&gt;There are reasons for having the inittab entry but this seems like more of a workaround that the true solution. And it seems that it is preventing you from doing your original task.</description>
      <pubDate>Wed, 16 Aug 2000 15:25:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stopping-cron/m-p/2436777#M5423</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2000-08-16T15:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: stopping cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stopping-cron/m-p/2436778#M5424</link>
      <description>Which version of HP-UX are you running?&lt;BR /&gt;The script has been implemented in 99. Check for cron patches.&lt;BR /&gt;e.g. for HP-UX 11.0 I do have installed PHCO_17553 Y2K cummulative cron.&lt;BR /&gt;Go under forum/individual patches and check for cron patches. You may find even newer released. Read the description and if you do not have the patches installed, installed them. The script might be just the work around before the patch....</description>
      <pubDate>Wed, 16 Aug 2000 15:37:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stopping-cron/m-p/2436778#M5424</guid>
      <dc:creator>Antoanetta Naghiu</dc:creator>
      <dc:date>2000-08-16T15:37:57Z</dc:date>
    </item>
  </channel>
</rss>

