<?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: Order on boot in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/order-on-boot/m-p/2710095#M903940</link>
    <description>Hi juanma,&lt;BR /&gt;&lt;BR /&gt; There are two rules-of-thumb for startup/stop scripts:&lt;BR /&gt;&lt;BR /&gt;1) The value of the S &amp;amp; K scripts *should* equal 1000 - usually the S is larger.&lt;BR /&gt;2) The K stop script *should* be one run-level lower then the S startup scipt.&lt;BR /&gt;&lt;BR /&gt;These are not hard &amp;amp; fast rules and are NOT required.&lt;BR /&gt; I guess you could term them "etiquette". I find doing them this way makes it easier to find them when necessary.&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;Jeff</description>
    <pubDate>Wed, 24 Apr 2002 13:46:12 GMT</pubDate>
    <dc:creator>Jeff Schussele</dc:creator>
    <dc:date>2002-04-24T13:46:12Z</dc:date>
    <item>
      <title>Order on boot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/order-on-boot/m-p/2710092#M903937</link>
      <description>Hi, all.&lt;BR /&gt;There is any problem if I put several link on /sbin/rc3.d with the same number ?&lt;BR /&gt;&lt;BR /&gt;S100nfs.server -&amp;gt; /sbin/init.d/nfs.server&lt;BR /&gt;S999dbora -&amp;gt; /sbin/init.d/dbora&lt;BR /&gt;K100dbora -&amp;gt; /sbin/init.d/dbora&lt;BR /&gt;&lt;BR /&gt;The problem is that I reboot the machine and there is not a normal database stop, so while I start the machine, the bbdd starts right.&lt;BR /&gt;The DBA told me the Oracle process are kill with kill -15 ???&lt;BR /&gt;&lt;BR /&gt;The script TO start an shut the bbdd:&lt;BR /&gt;&lt;BR /&gt;case $1 in&lt;BR /&gt;&lt;BR /&gt;start_msg)&lt;BR /&gt;        echo "Start the Oracle Database and Listener"&lt;BR /&gt;        ;;&lt;BR /&gt;stop_msg)&lt;BR /&gt;        echo "Stop the Oracle Database and Listener"&lt;BR /&gt;        ;;&lt;BR /&gt;&lt;BR /&gt;'start')&lt;BR /&gt;        /usr/bin/su - oracle8 -c "/oracle/bin/dbstart"&lt;BR /&gt;        /usr/bin/su - oracle8 -c "/oracle/bin/lsnrctl start LISTENER_STU02"&lt;BR /&gt;        /usr/bin/su - oracle8 -c "/oracle/bin/lsnrctl start LISTENER_STU022"&lt;BR /&gt;        ;;&lt;BR /&gt;&lt;BR /&gt;'stop')&lt;BR /&gt;        /usr/bin/su - oracle8 -c /oracle/bin/dbshut_i &lt;BR /&gt;        /usr/bin/su - oracle8 -c "/oracle/bin/lsnrctl stop LISTENER_STU02" &lt;BR /&gt;        /usr/bin/su - oracle8 -c "/oracle/bin/lsnrctl stop LISTENER_STU022"&lt;BR /&gt;        ;;&lt;BR /&gt;&lt;BR /&gt;esac&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Wed, 24 Apr 2002 13:37:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/order-on-boot/m-p/2710092#M903937</guid>
      <dc:creator>Juan Manuel López</dc:creator>
      <dc:date>2002-04-24T13:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: Order on boot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/order-on-boot/m-p/2710093#M903938</link>
      <description>No, there is a not a problem having a few S100's or K999's, there are always a few applications that end up using the same number. So in your case you should be good.&lt;BR /&gt;&lt;BR /&gt;GL,&lt;BR /&gt;C</description>
      <pubDate>Wed, 24 Apr 2002 13:40:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/order-on-boot/m-p/2710093#M903938</guid>
      <dc:creator>Craig Rants</dc:creator>
      <dc:date>2002-04-24T13:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: Order on boot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/order-on-boot/m-p/2710094#M903939</link>
      <description>I do not why, so when I reboot the machine or shutdown, do not execute the K100  dbora link.</description>
      <pubDate>Wed, 24 Apr 2002 13:45:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/order-on-boot/m-p/2710094#M903939</guid>
      <dc:creator>Juan Manuel López</dc:creator>
      <dc:date>2002-04-24T13:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: Order on boot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/order-on-boot/m-p/2710095#M903940</link>
      <description>Hi juanma,&lt;BR /&gt;&lt;BR /&gt; There are two rules-of-thumb for startup/stop scripts:&lt;BR /&gt;&lt;BR /&gt;1) The value of the S &amp;amp; K scripts *should* equal 1000 - usually the S is larger.&lt;BR /&gt;2) The K stop script *should* be one run-level lower then the S startup scipt.&lt;BR /&gt;&lt;BR /&gt;These are not hard &amp;amp; fast rules and are NOT required.&lt;BR /&gt; I guess you could term them "etiquette". I find doing them this way makes it easier to find them when necessary.&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;Jeff</description>
      <pubDate>Wed, 24 Apr 2002 13:46:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/order-on-boot/m-p/2710095#M903940</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2002-04-24T13:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: Order on boot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/order-on-boot/m-p/2710096#M903941</link>
      <description>In your case, no. The numbers are only there to set the boot order. If it doesn't matter when your run control script starts or stops. Then the number doesnt matter. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Apr 2002 13:48:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/order-on-boot/m-p/2710096#M903941</guid>
      <dc:creator>hpuxrox</dc:creator>
      <dc:date>2002-04-24T13:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: Order on boot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/order-on-boot/m-p/2710097#M903942</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Your K100dbora link should be in /sbin/rc2.d not rc3.d.&lt;BR /&gt;&lt;BR /&gt;Placed as it is in rc3.d, it would only get called if you were shutting down from runlevel 4 (or higher).&lt;BR /&gt;&lt;BR /&gt;The runlevel that the system boots to is driven by the init entry (first line) of /etc/inittab. For example...&lt;BR /&gt;&lt;BR /&gt;init:3:initdefault:&lt;BR /&gt;&lt;BR /&gt;The system will boot automatically to runlevel 3.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;John</description>
      <pubDate>Wed, 24 Apr 2002 13:49:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/order-on-boot/m-p/2710097#M903942</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2002-04-24T13:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: Order on boot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/order-on-boot/m-p/2710098#M903943</link>
      <description>Hi Juanma,&lt;BR /&gt;&lt;BR /&gt;there is no problem if you have several Start- or Kill- scripts with the same passing number. But please remember, they are run in alphabetical order after the numbers. Are there dependencies, means must one of those scripts with the same numbers been run before another one is run? Would a service been started with one of these scripts not work if another one is not started so far?&lt;BR /&gt;&lt;BR /&gt;If you take care of this problem, this should work for you.&lt;BR /&gt;&lt;BR /&gt;Your DBA is right, oracle is stopped first with killing signal -15. But if this does not work, it's also stopped with kill signal -9 by the killall-script, which kills all services and processes that are not yet stopped. (Kill scripts failed....)&lt;BR /&gt;&lt;BR /&gt;Allways stay on the bright side of life!&lt;BR /&gt;&lt;BR /&gt;Peter</description>
      <pubDate>Wed, 24 Apr 2002 13:50:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/order-on-boot/m-p/2710098#M903943</guid>
      <dc:creator>Peter Kloetgen</dc:creator>
      <dc:date>2002-04-24T13:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: Order on boot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/order-on-boot/m-p/2710099#M903944</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I couldn't find 'several links with the same number' in your example. If you are talking about 'S100' and 'K100', then that's not a problem since 'S' stands for start and 'K' stands for kill scripts.&lt;BR /&gt;&lt;BR /&gt;If you are talking about configuring the start and kill scripts in the same run level, then it's not a good practise. Normally if a process starts at run level-2, then the kill script will be in run level-1 and the total number could be '1000' (Sxxx+Kxxx=1000). This is the normal practise.&lt;BR /&gt;&lt;BR /&gt;I would suggest you to put your dbora kill script in /sbin/rc0.d. Always remember to kill the last started process first.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Shiju&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Apr 2002 13:51:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/order-on-boot/m-p/2710099#M903944</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2002-04-24T13:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: Order on boot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/order-on-boot/m-p/2710100#M903945</link>
      <description>John is correct. The Kxxx is executed on a lower runlevel.&lt;BR /&gt;If you do a 'who -r', your current runlevel is shown.&lt;BR /&gt;The Kxxx of the same level will not be executed.&lt;BR /&gt;&lt;BR /&gt;So.. /sbin/init.d/dbora should be linked as:&lt;BR /&gt;/sbin/rc3.d/Sxxx and&lt;BR /&gt;/sbin/rc2.d/Kyyy&lt;BR /&gt;,where xxx+yyy=1000.&lt;BR /&gt;But.. as said by others.. a number is just a number.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Ceesjan</description>
      <pubDate>Wed, 24 Apr 2002 14:04:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/order-on-boot/m-p/2710100#M903945</guid>
      <dc:creator>Ceesjan van Hattum</dc:creator>
      <dc:date>2002-04-24T14:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Order on boot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/order-on-boot/m-p/2710101#M903946</link>
      <description>It works, that??s the reason why ! &lt;BR /&gt;When I stop the machine, it go to level 2 to see what to stop, so the K100dbora on level 3 does not run.&lt;BR /&gt;Thank you very much.</description>
      <pubDate>Wed, 24 Apr 2002 14:27:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/order-on-boot/m-p/2710101#M903946</guid>
      <dc:creator>Juan Manuel López</dc:creator>
      <dc:date>2002-04-24T14:27:06Z</dc:date>
    </item>
  </channel>
</rss>

