<?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: rc3.d in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/rc3-d/m-p/2585030#M592641</link>
    <description>Hi Frankie:&lt;BR /&gt;&lt;BR /&gt;One other point, if both the start and kill scripts trigger at the same run-level and that level is the default run-level as set by the initdefault entry in /etc/inittab, the kill script will not even be triggered. That is why you always kill at run-level - 1.&lt;BR /&gt;&lt;BR /&gt;Regards, Clay</description>
    <pubDate>Wed, 26 Sep 2001 01:52:31 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2001-09-26T01:52:31Z</dc:date>
    <item>
      <title>rc3.d</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc3-d/m-p/2585025#M592636</link>
      <description>Shouldn't the KILL script be in the rc2.d, which is one directory below the run level?  My peers decided the Start and Kill scripts for Oracle should be in rc3.d. (They originally had it in rc1.d).  BTW the NFS kill is in rc2.d.&lt;BR /&gt;&lt;BR /&gt;TIA</description>
      <pubDate>Wed, 26 Sep 2001 01:11:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc3-d/m-p/2585025#M592636</guid>
      <dc:creator>lastgreatone</dc:creator>
      <dc:date>2001-09-26T01:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: rc3.d</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc3-d/m-p/2585026#M592637</link>
      <description>Hi Frankie:&lt;BR /&gt;&lt;BR /&gt;You are correct. The rule is that the kill script goes in one run-level below that of the start script. e.g If your start script is&lt;BR /&gt;/sbin/rc3.d/S910oracle then your kill script should be /sbin/rc2.d/K090oracle. The other convention (though not a requirement) is that the 3 digits of both scripts should add to 1000. This almost always brings them up and down in the intended order. I have also implemented Oracle to start in rc4.d and stop in rc3.d assuming the default run-level is 4.&lt;BR /&gt;&lt;BR /&gt;Regards, Clay</description>
      <pubDate>Wed, 26 Sep 2001 01:37:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc3-d/m-p/2585026#M592637</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-09-26T01:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: rc3.d</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc3-d/m-p/2585027#M592638</link>
      <description>Hi Frankie:&lt;BR /&gt;&lt;BR /&gt;In order to meet dependency requirements, services are generally killed in the reverse order from which they are started.&lt;BR /&gt;&lt;BR /&gt;For example, assume there are four services, W, X, Y, and Z. The S/K script names for these&lt;BR /&gt;services would likely be:&lt;BR /&gt;&lt;BR /&gt;/sbin/rc3.d: /sbin/rc2.d:&lt;BR /&gt;------------ ------------&lt;BR /&gt;S200W        K800W&lt;BR /&gt;S300X        K700X&lt;BR /&gt;S400Y        K600Y&lt;BR /&gt;S500Z        K500Z&lt;BR /&gt;&lt;BR /&gt;Regarding NFS, the startup scripts are in:&lt;BR /&gt;&lt;BR /&gt;NFS core /sbin/rc2.d&lt;BR /&gt;NFS client /sbin/rc2.d&lt;BR /&gt;NFS server /sbin/rc3.d&lt;BR /&gt;&lt;BR /&gt;Shawn&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 26 Sep 2001 01:38:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc3-d/m-p/2585027#M592638</guid>
      <dc:creator>Victor_5</dc:creator>
      <dc:date>2001-09-26T01:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: rc3.d</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc3-d/m-p/2585028#M592639</link>
      <description>hi,&lt;BR /&gt;See the link below:&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x6c02a24d9abcd4118fef0090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x6c02a24d9abcd4118fef0090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Animesh&lt;BR /&gt;</description>
      <pubDate>Wed, 26 Sep 2001 01:43:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc3-d/m-p/2585028#M592639</guid>
      <dc:creator>Animesh Chakraborty</dc:creator>
      <dc:date>2001-09-26T01:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: rc3.d</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc3-d/m-p/2585029#M592640</link>
      <description>Hi,&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0xdfb779bffde7d4118fef0090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0xdfb779bffde7d4118fef0090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;A must read before you start&lt;BR /&gt;&lt;A href="http://docs.hp.com/hpux/onlinedocs/os/startup.html" target="_blank"&gt;http://docs.hp.com/hpux/onlinedocs/os/startup.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Animesh&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 26 Sep 2001 01:51:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc3-d/m-p/2585029#M592640</guid>
      <dc:creator>Animesh Chakraborty</dc:creator>
      <dc:date>2001-09-26T01:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: rc3.d</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc3-d/m-p/2585030#M592641</link>
      <description>Hi Frankie:&lt;BR /&gt;&lt;BR /&gt;One other point, if both the start and kill scripts trigger at the same run-level and that level is the default run-level as set by the initdefault entry in /etc/inittab, the kill script will not even be triggered. That is why you always kill at run-level - 1.&lt;BR /&gt;&lt;BR /&gt;Regards, Clay</description>
      <pubDate>Wed, 26 Sep 2001 01:52:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc3-d/m-p/2585030#M592641</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-09-26T01:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: rc3.d</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc3-d/m-p/2585031#M592642</link>
      <description>General rule of thumb also is that the start and kill script numbers should add up to 1000 (it's a neatness thing)</description>
      <pubDate>Wed, 26 Sep 2001 04:07:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc3-d/m-p/2585031#M592642</guid>
      <dc:creator>Scott Van Kalken</dc:creator>
      <dc:date>2001-09-26T04:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: rc3.d</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc3-d/m-p/2585032#M592643</link>
      <description>Hi Frankie:&lt;BR /&gt;&lt;BR /&gt;'Kill' scripts should execute at one run-level lower than their 'start' counterpart, for the reason that Clay clearly states in his second post.&lt;BR /&gt;&lt;BR /&gt;In addition the "1000-rule", when followed, means not only that processes will be killed in in the *reverse* order that they were started, but that processes will *not* be killed until a potentially dependent process is first killed.&lt;BR /&gt;&lt;BR /&gt;Consider processes A, B and C started at run-level-3 as S100A, S400B and S900C.  Assume further that S400B is dependent upon some service provided by S100A.  The proper kill scripts would be at run-level-2 and respectively be K100C, K600B and K900A.  Thus, "B" would be gracefully terminated before "A"'s service is killed.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 26 Sep 2001 10:54:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc3-d/m-p/2585032#M592643</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-09-26T10:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: rc3.d</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc3-d/m-p/2585033#M592644</link>
      <description>Hi Frankie,&lt;BR /&gt;&lt;BR /&gt;Aside from being a good convention, the kill script MUST be in a lower level from the start script or it will not be executed (see /sbin/rc).  It is only executed when changing run-level to it's level or a lower level.  For example, changing from run-level 3 to 1 executes Kill scripts in rc2.d and rc1.d.&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Wed, 26 Sep 2001 12:07:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc3-d/m-p/2585033#M592644</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2001-09-26T12:07:32Z</dc:date>
    </item>
  </channel>
</rss>

