<?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: run script when system reboot in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/run-script-when-system-reboot/m-p/3317476#M186802</link>
    <description>And if you are starting up ssh or any other access method, start Oracle AFTER those scripts, because Oracle can take a while to start.&lt;BR /&gt;&lt;BR /&gt;So pick a high S number, like S990, since the startup scripts run in numerical order:&lt;BR /&gt;S001&lt;BR /&gt;S002&lt;BR /&gt;...&lt;BR /&gt;S099&lt;BR /&gt;S100&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;Tom</description>
    <pubDate>Wed, 30 Jun 2004 08:58:56 GMT</pubDate>
    <dc:creator>Tom Maloy</dc:creator>
    <dc:date>2004-06-30T08:58:56Z</dc:date>
    <item>
      <title>run script when system reboot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/run-script-when-system-reboot/m-p/3317471#M186797</link>
      <description>I want to start the db automatically everytime when the system reboot , how to set it ? thx</description>
      <pubDate>Mon, 28 Jun 2004 20:44:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/run-script-when-system-reboot/m-p/3317471#M186797</guid>
      <dc:creator>peterchu</dc:creator>
      <dc:date>2004-06-28T20:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: run script when system reboot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/run-script-when-system-reboot/m-p/3317472#M186798</link>
      <description>Firstly you need to create a script in the /sbin/init.d directory for your database. There is a sample file called template that can be used. Once this is created, a symbolic link needs to created in both startup and shutdown run-levels.&lt;BR /&gt;(/sbin/rc3.d/K090dbshut and /sbin/rc4.d/S910dbstart)&lt;BR /&gt;&lt;BR /&gt;It is a little difficult giving an example when we don't know what database you have or it may be configured on your system.</description>
      <pubDate>Mon, 28 Jun 2004 21:11:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/run-script-when-system-reboot/m-p/3317472#M186798</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2004-06-28T21:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: run script when system reboot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/run-script-when-system-reboot/m-p/3317473#M186799</link>
      <description>thx reply,&lt;BR /&gt;&lt;BR /&gt;what is mean of K090 and S910 , is it meaningful ? just add K090 + script ( eg. K090myscript )to your said path is OK ? Thx</description>
      <pubDate>Mon, 28 Jun 2004 21:36:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/run-script-when-system-reboot/m-p/3317473#M186799</guid>
      <dc:creator>peterchu</dc:creator>
      <dc:date>2004-06-28T21:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: run script when system reboot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/run-script-when-system-reboot/m-p/3317474#M186800</link>
      <description>The way a system is setup is that you have the actual scripts in /sbin/init.d&lt;BR /&gt;&lt;BR /&gt;A symbolic link is then created for both the shutdown run level, generally rc3.d (K090) and startup /sbin/rc4.d (S910).&lt;BR /&gt;The naming convention is that both of these numbers add up to 1000. (combination of S910 and K090) (this process of the actual run level numbering will vary from site to site.)&lt;BR /&gt;&lt;BR /&gt;The script itself if written correctly that the Kxxx shutsdown the process/package and Sxxx will start it.&lt;BR /&gt;&lt;BR /&gt;Having the script in as Kxxx instead of a link will work, but it is not a standard practise.</description>
      <pubDate>Mon, 28 Jun 2004 22:35:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/run-script-when-system-reboot/m-p/3317474#M186800</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2004-06-28T22:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: run script when system reboot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/run-script-when-system-reboot/m-p/3317475#M186801</link>
      <description>BTW one thing to watch out for if this is oracle...&lt;BR /&gt;&lt;BR /&gt;Make sure that /etc/oratab is set up correctly. If you can do a dbstart and a dbshut then it is working correctly.&lt;BR /&gt;&lt;BR /&gt;Look at some of the scripts on /sbin/init.d to see how they work. &lt;BR /&gt;&lt;BR /&gt;The standard scripts take one argument. This argument will have a value of:&lt;BR /&gt;&lt;BR /&gt;   start_msg&lt;BR /&gt;   stop_msg&lt;BR /&gt;   start&lt;BR /&gt;   stop&lt;BR /&gt;&lt;BR /&gt;start_msg and stop_msg cause the script to print a display on the console. This is typically Starting Oracle, Stopping Oracle. This is what makes the cute little status lines during startup and shutdown&lt;BR /&gt;&lt;BR /&gt;There is usually a case statement in the script that branches on the message values. As I said earlier, the start_msg and stop_msg will branch down and echo the messages on the console.&lt;BR /&gt;&lt;BR /&gt;The start branch will typically do &lt;BR /&gt;&lt;BR /&gt;su - oracle -c dbstart&lt;BR /&gt;&lt;BR /&gt;and the stop branch will be &lt;BR /&gt;&lt;BR /&gt;su - oracle -c dbshut&lt;BR /&gt;&lt;BR /&gt;I've found that I've had to modify the dbshut script so that it does an immediate shutdown. Otherwise, oracle will not shutdown until everyone has logged off.&lt;BR /&gt;&lt;BR /&gt;-Good Luck</description>
      <pubDate>Wed, 30 Jun 2004 08:50:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/run-script-when-system-reboot/m-p/3317475#M186801</guid>
      <dc:creator>R. Allan Hicks</dc:creator>
      <dc:date>2004-06-30T08:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: run script when system reboot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/run-script-when-system-reboot/m-p/3317476#M186802</link>
      <description>And if you are starting up ssh or any other access method, start Oracle AFTER those scripts, because Oracle can take a while to start.&lt;BR /&gt;&lt;BR /&gt;So pick a high S number, like S990, since the startup scripts run in numerical order:&lt;BR /&gt;S001&lt;BR /&gt;S002&lt;BR /&gt;...&lt;BR /&gt;S099&lt;BR /&gt;S100&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;Tom</description>
      <pubDate>Wed, 30 Jun 2004 08:58:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/run-script-when-system-reboot/m-p/3317476#M186802</guid>
      <dc:creator>Tom Maloy</dc:creator>
      <dc:date>2004-06-30T08:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: run script when system reboot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/run-script-when-system-reboot/m-p/3317477#M186803</link>
      <description>Hi,&lt;BR /&gt;Have a look at this threads below:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=450287" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=450287&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=391167" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=391167&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Jun 2004 09:35:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/run-script-when-system-reboot/m-p/3317477#M186803</guid>
      <dc:creator>Bharat Katkar</dc:creator>
      <dc:date>2004-06-30T09:35:31Z</dc:date>
    </item>
  </channel>
</rss>

