<?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 bootup in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/run-script-when-bootup/m-p/3019946#M130211</link>
    <description>&lt;BR /&gt;put your script in /sbin/init.d&lt;BR /&gt;&lt;BR /&gt;i.e.   /sbin/init.d/dbstartup&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;an then make a symbolic link from /sbin/rc2.d&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;/sbin/rc2.d/S570dbstartup  -&amp;gt; /sbin/init.d/dbstartup&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This will startup the database whenever the system enters run-level 2.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Rainer</description>
    <pubDate>Thu, 10 Jul 2003 07:03:11 GMT</pubDate>
    <dc:creator>Rainer von Bongartz</dc:creator>
    <dc:date>2003-07-10T07:03:11Z</dc:date>
    <item>
      <title>Run script when bootup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/run-script-when-bootup/m-p/3019945#M130210</link>
      <description>I want to run a script to start the db when the UX is bootup , how to set it in HP UX 11.0 ? Thx</description>
      <pubDate>Thu, 10 Jul 2003 06:55:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/run-script-when-bootup/m-p/3019945#M130210</guid>
      <dc:creator>juno2</dc:creator>
      <dc:date>2003-07-10T06:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: Run script when bootup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/run-script-when-bootup/m-p/3019946#M130211</link>
      <description>&lt;BR /&gt;put your script in /sbin/init.d&lt;BR /&gt;&lt;BR /&gt;i.e.   /sbin/init.d/dbstartup&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;an then make a symbolic link from /sbin/rc2.d&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;/sbin/rc2.d/S570dbstartup  -&amp;gt; /sbin/init.d/dbstartup&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This will startup the database whenever the system enters run-level 2.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Rainer</description>
      <pubDate>Thu, 10 Jul 2003 07:03:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/run-script-when-bootup/m-p/3019946#M130211</guid>
      <dc:creator>Rainer von Bongartz</dc:creator>
      <dc:date>2003-07-10T07:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: Run script when bootup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/run-script-when-bootup/m-p/3019947#M130212</link>
      <description>Take a read of the document in:&lt;BR /&gt;/usr/share/doc called start_up.txt&lt;BR /&gt;this should explain it all for you.</description>
      <pubDate>Thu, 10 Jul 2003 07:08:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/run-script-when-bootup/m-p/3019947#M130212</guid>
      <dc:creator>melvyn burnard</dc:creator>
      <dc:date>2003-07-10T07:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: Run script when bootup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/run-script-when-bootup/m-p/3019948#M130213</link>
      <description>Configure a script to autorun at system bootup: &lt;BR /&gt;&lt;BR /&gt;1. copy and create script on /sbin/init.d (from /sbin/init.d/template)&lt;BR /&gt;&lt;BR /&gt;2. Create symbolic links to the script in the appropriate run-level script directories, as follows: &lt;BR /&gt;&lt;BR /&gt;# ln -s /sbin/init.d/script_name /etc/rc0.d/K10script_name &lt;BR /&gt;# ln -s /sbin/init.d/script_name /etc/rc3.d/S99scipt_name</description>
      <pubDate>Thu, 10 Jul 2003 07:14:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/run-script-when-bootup/m-p/3019948#M130213</guid>
      <dc:creator>twang</dc:creator>
      <dc:date>2003-07-10T07:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: Run script when bootup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/run-script-when-bootup/m-p/3019949#M130214</link>
      <description>If dbstart and dbstop are the scripts that start or stop the database, then you can create a small script like this:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;#&lt;BR /&gt;#export all the path variables you want&lt;BR /&gt;#&lt;BR /&gt;#&lt;BR /&gt;case "$1" in&lt;BR /&gt;&lt;BR /&gt;   "start_msg") echo "Starting Oracle dababase" ;;&lt;BR /&gt;&lt;BR /&gt;   "start") /path/to/script/dbstart ;;&lt;BR /&gt;   "stop_msg") echo "Stoping oracle database" ;;&lt;BR /&gt;   "stop") /path/to/script/dbstop ;;&lt;BR /&gt;&lt;BR /&gt;    *) echo "Usage: myscript start | stop" ;;&lt;BR /&gt;&lt;BR /&gt;esac&lt;BR /&gt;&lt;BR /&gt;exit 0&lt;BR /&gt;&lt;BR /&gt;Name the script something (myscript here) and put it in /sbin/init.d directory with 555 permisions.&lt;BR /&gt;&lt;BR /&gt;Go to /sbin/rc3.d if you want it to start on runlevel 3 and make a softlink to the above script named S999oracledb for example. The S means that the script should start in this runlevel. The number is the sequence of executing the scripts.&lt;BR /&gt;&lt;BR /&gt;To have the database shutdown automatically when you rebbot or shuting the system down, make a softlink to the script in /sbin/rc2.d or rc1.d and name it Kxxxoracledb. K stands for kill or stop. xxx is again the sequence. Make sure you run it (and stop the database) BEFORE other important things stop running.&lt;BR /&gt;&lt;BR /&gt;hope it helps,&lt;BR /&gt;&lt;BR /&gt;Nikos&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Jul 2003 07:18:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/run-script-when-bootup/m-p/3019949#M130214</guid>
      <dc:creator>Karamanolis Nikos</dc:creator>
      <dc:date>2003-07-10T07:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: Run script when bootup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/run-script-when-bootup/m-p/3019950#M130215</link>
      <description>A script should like this:&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;&lt;BR /&gt;case "$1" in&lt;BR /&gt;&lt;BR /&gt;start_msg)&lt;BR /&gt;   echo "run startup_script" &lt;BR /&gt;   ;;&lt;BR /&gt;start)&lt;BR /&gt;(add startup script here)&lt;BR /&gt;  ;;&lt;BR /&gt;stop_msg)&lt;BR /&gt;   echo "run shutdown_script" &lt;BR /&gt;   ;;&lt;BR /&gt;stop)&lt;BR /&gt;(add shutdown script here)&lt;BR /&gt;   ;;&lt;BR /&gt;esac&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Jul 2003 07:20:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/run-script-when-bootup/m-p/3019950#M130215</guid>
      <dc:creator>twang</dc:creator>
      <dc:date>2003-07-10T07:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: Run script when bootup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/run-script-when-bootup/m-p/3019951#M130216</link>
      <description>Hi,&lt;BR /&gt;This question was answered fully (scripts inclusive) in &lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x3ce99276484dd611abdb0090277a778c,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x3ce99276484dd611abdb0090277a778c,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;My search was : "oracle sbin"&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Tom Geudens</description>
      <pubDate>Thu, 10 Jul 2003 08:13:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/run-script-when-bootup/m-p/3019951#M130216</guid>
      <dc:creator>Tom Geudens</dc:creator>
      <dc:date>2003-07-10T08:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: Run script when bootup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/run-script-when-bootup/m-p/3019952#M130217</link>
      <description>thx all reply, &lt;BR /&gt;&lt;BR /&gt;but what is the meaning of the code "S570" in Rainer von Bongartz 's example , in my system , there are some other codes like S900 , S780 , what code should i use ? thx</description>
      <pubDate>Thu, 10 Jul 2003 08:18:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/run-script-when-bootup/m-p/3019952#M130217</guid>
      <dc:creator>juno2</dc:creator>
      <dc:date>2003-07-10T08:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: Run script when bootup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/run-script-when-bootup/m-p/3019953#M130218</link>
      <description />
      <pubDate>Thu, 10 Jul 2003 08:34:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/run-script-when-bootup/m-p/3019953#M130218</guid>
      <dc:creator>twang</dc:creator>
      <dc:date>2003-07-10T08:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: Run script when bootup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/run-script-when-bootup/m-p/3019954#M130219</link>
      <description>The "S" means it is a start script, a "K" means it is a stop script. When your system boots up it will run all the "S" scripts (sometimes dependent on flags set in /etc/rc.config.d files)at particular run levels, hence the rc2.d, rc3.d, etc... directories. The "K" scripts do the opposite, as the system goes thru the run levels to shutdown it will run the "K" scripts to stop processes, apps, or daemons. The numbers next to the "S" and "K" are the sequence they run in.&lt;BR /&gt;&lt;BR /&gt;Like the folks earlier stated it's all  in /usr/share/start_up.txt&lt;BR /&gt;&lt;BR /&gt;Later</description>
      <pubDate>Thu, 10 Jul 2003 13:54:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/run-script-when-bootup/m-p/3019954#M130219</guid>
      <dc:creator>Robert Salter</dc:creator>
      <dc:date>2003-07-10T13:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: Run script when bootup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/run-script-when-bootup/m-p/3019955#M130220</link>
      <description>Attached is the doc we used. It is still valid since we are at 11.0.&lt;BR /&gt;I really appreciated the test procedure noted. We have entered many startup scripts. A db startup was simply one of them.&lt;BR /&gt;&lt;BR /&gt;Best of luck.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;dl</description>
      <pubDate>Thu, 10 Jul 2003 17:35:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/run-script-when-bootup/m-p/3019955#M130220</guid>
      <dc:creator>Dave La Mar</dc:creator>
      <dc:date>2003-07-10T17:35:48Z</dc:date>
    </item>
  </channel>
</rss>

