<?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: Startup location in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/startup-location/m-p/3298602#M183451</link>
    <description>Hello,&lt;BR /&gt;&lt;BR /&gt;In /sbin/init.d you just place the startup or shutdown script , but you must tell the system how and when to use it .&lt;BR /&gt;&lt;BR /&gt;You will tell the system to start the script in a certain execution level . This is defined in the /sbin/rcX.d . X means the execution level in which the script will be executed&lt;BR /&gt;&lt;BR /&gt;In this directories you will create a file for the startup , SXXX..... , and a file for the shutdown KXX.... XXX means the order in which the scripts will be executed inside the execution level.&lt;BR /&gt;&lt;BR /&gt;There are a lot of examples in this directories&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;XXX means the orede</description>
    <pubDate>Tue, 08 Jun 2004 01:52:48 GMT</pubDate>
    <dc:creator>jpcast_real</dc:creator>
    <dc:date>2004-06-08T01:52:48Z</dc:date>
    <item>
      <title>Startup location</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/startup-location/m-p/3298601#M183450</link>
      <description>Hi&lt;BR /&gt;I made a script and planning to launch it when the system boot. Do I put the script in /sbin/init.d?&lt;BR /&gt;Do I need to edit somewhere?&lt;BR /&gt;&lt;BR /&gt;thanks</description>
      <pubDate>Tue, 08 Jun 2004 01:42:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/startup-location/m-p/3298601#M183450</guid>
      <dc:creator>Chi Yi Lee</dc:creator>
      <dc:date>2004-06-08T01:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: Startup location</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/startup-location/m-p/3298602#M183451</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;In /sbin/init.d you just place the startup or shutdown script , but you must tell the system how and when to use it .&lt;BR /&gt;&lt;BR /&gt;You will tell the system to start the script in a certain execution level . This is defined in the /sbin/rcX.d . X means the execution level in which the script will be executed&lt;BR /&gt;&lt;BR /&gt;In this directories you will create a file for the startup , SXXX..... , and a file for the shutdown KXX.... XXX means the order in which the scripts will be executed inside the execution level.&lt;BR /&gt;&lt;BR /&gt;There are a lot of examples in this directories&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;XXX means the orede</description>
      <pubDate>Tue, 08 Jun 2004 01:52:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/startup-location/m-p/3298602#M183451</guid>
      <dc:creator>jpcast_real</dc:creator>
      <dc:date>2004-06-08T01:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Startup location</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/startup-location/m-p/3298603#M183452</link>
      <description>Hi,&lt;BR /&gt;Refer the following Links:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=480208" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=480208&lt;/A&gt;&lt;BR /&gt;&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=351809" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=351809&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 08 Jun 2004 01:53:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/startup-location/m-p/3298603#M183452</guid>
      <dc:creator>Shaikh Imran</dc:creator>
      <dc:date>2004-06-08T01:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: Startup location</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/startup-location/m-p/3298604#M183453</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;read this post:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=106875" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=106875&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;besides /sbin/init.d where the script r kept, u need to do a soft link to /sbin/rc#.d as well.&lt;BR /&gt;&lt;BR /&gt;regards.</description>
      <pubDate>Tue, 08 Jun 2004 01:54:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/startup-location/m-p/3298604#M183453</guid>
      <dc:creator>Joseph Loo</dc:creator>
      <dc:date>2004-06-08T01:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: Startup location</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/startup-location/m-p/3298605#M183454</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;Adding a program to start automatically at run time requires that the program be put in /sbin/init.d directory. &lt;BR /&gt;the execution scripts contains four major parts which are passed as command line arguments to these scripts.&lt;BR /&gt;&lt;BR /&gt;start_msg  displayed on the console when starting&lt;BR /&gt;stop_msg   displayed on the console when stopping&lt;BR /&gt;start      command to start the program&lt;BR /&gt;stop       command to stop the program&lt;BR /&gt;&lt;BR /&gt;and these are put in the configuration for each respective script at /etc/rc.config.d directory&lt;BR /&gt;&lt;BR /&gt;next you need to decide at which run level you are going to start the script, say you are planning to start the script at run level 2. a link file has to be placed in /sbin/rc2.d directory.&lt;BR /&gt;&lt;BR /&gt;ln -s /sbin/init.d/script /sbin/rc2.d/S900script&lt;BR /&gt;&lt;BR /&gt;with best wishes&lt;BR /&gt;Naveej&lt;BR /&gt;</description>
      <pubDate>Tue, 08 Jun 2004 01:56:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/startup-location/m-p/3298605#M183454</guid>
      <dc:creator>Naveej.K.A</dc:creator>
      <dc:date>2004-06-08T01:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: Startup location</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/startup-location/m-p/3298606#M183455</link>
      <description>Thanks Javier&lt;BR /&gt;&lt;BR /&gt;One more Q.&lt;BR /&gt;It seems like in /sbin/rcX.d are bunch of links.  Is that mean that I don't have to put my script in /sbin/init.d?</description>
      <pubDate>Tue, 08 Jun 2004 02:00:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/startup-location/m-p/3298606#M183455</guid>
      <dc:creator>Chi Yi Lee</dc:creator>
      <dc:date>2004-06-08T02:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: Startup location</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/startup-location/m-p/3298607#M183456</link>
      <description>No... /sbin/init.d should contain the script, /sbin/rc#.d should contain symbolic links to that script.</description>
      <pubDate>Tue, 08 Jun 2004 02:06:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/startup-location/m-p/3298607#M183456</guid>
      <dc:creator>Elmar P. Kolkman</dc:creator>
      <dc:date>2004-06-08T02:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: Startup location</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/startup-location/m-p/3298608#M183457</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You must put your script in /sbin/init.d and  create the link to /sbin/rcX.d directory.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;RDL.</description>
      <pubDate>Tue, 08 Jun 2004 02:07:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/startup-location/m-p/3298608#M183457</guid>
      <dc:creator>Rajesh D L</dc:creator>
      <dc:date>2004-06-08T02:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: Startup location</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/startup-location/m-p/3298609#M183458</link>
      <description>Script has to be kept in /sbin/init.d directory whereas files under /sbin/rc?.d are links to the script in /sbin/init.d.&lt;BR /&gt;&lt;BR /&gt;sks</description>
      <pubDate>Tue, 08 Jun 2004 02:09:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/startup-location/m-p/3298609#M183458</guid>
      <dc:creator>Sanjay Kumar Suri</dc:creator>
      <dc:date>2004-06-08T02:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: Startup location</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/startup-location/m-p/3298610#M183459</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;this is an example for what we do typically for Oracle Database startup:&lt;BR /&gt;&lt;BR /&gt;Relevant Files:&lt;BR /&gt;===============&lt;BR /&gt;a. /sbin/init.d/oracle&lt;BR /&gt;contains the main script for doing db startup and shutdown owned by root &lt;BR /&gt;&lt;BR /&gt;b. /etc/rc.config.d/oracle &lt;BR /&gt;this file enables/disables automatic startup and shutdown of the databases owned by root &lt;BR /&gt;&lt;BR /&gt;c. /sbin/rc1.d/K100oracle -&amp;gt;/sbin/init.d/oracle&lt;BR /&gt;this link tells the system when to execute the Oracle script with the 'stop' command in single user mode during system shutdown &lt;BR /&gt;&lt;BR /&gt;d. /sbin/rc2.d/S990oracle -&amp;gt;/sbin/init.d/oracle &lt;BR /&gt;this link tells the system when to execute the Oracle script with the 'start' command in multi-user mode during system startup &lt;BR /&gt;&lt;BR /&gt;Steps:&lt;BR /&gt;======&lt;BR /&gt;1. Create an executable script /sbin/init.d/oracle for the startup and shutdown of Oracle &lt;BR /&gt;&lt;BR /&gt;Your script should attempt to start the database with the following command: &lt;BR /&gt;su - &lt;ORACLE_OWNER&gt; -c &amp;lt;$ORACLE_HOME&amp;gt;/bin/dbstart &lt;BR /&gt;&lt;BR /&gt;Your script should attempt to shut the database with the following command: &lt;BR /&gt;su - &lt;ORACLE_OWNER&gt; -c &amp;lt;$ORACLE_HOME&amp;gt;/bin/dbshut &lt;BR /&gt;&lt;BR /&gt;Make sure that the script is owned and executable only by the super user. &lt;BR /&gt;&lt;BR /&gt;2. Create the file /etc/rc.config.d/oracle &lt;BR /&gt;This file should contain: &lt;BR /&gt;ORACLE_START=1 &lt;BR /&gt;export ORACLE_START &lt;BR /&gt;&lt;BR /&gt;3. Edit /etc/oratab &lt;BR /&gt;ORACLE_SID:ORACLE_HOME:Y|N &lt;BR /&gt;&lt;BR /&gt;where Y or N indicates whether you want the dbstart and dbshut scripts to be run &lt;BR /&gt;&lt;BR /&gt;4. Make /sbin/rc1.d/K100oracle a symbolic link to /sbin/init.d/oracle &lt;BR /&gt;&lt;BR /&gt;5. Make /sbin/rc2.d/S990oracle a symbolic link to /sbin/init.d/oracle &lt;BR /&gt;&lt;BR /&gt;hope this helps!&lt;BR /&gt;regards&lt;BR /&gt;Yogeeraj&lt;/ORACLE_OWNER&gt;&lt;/ORACLE_OWNER&gt;</description>
      <pubDate>Tue, 08 Jun 2004 08:06:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/startup-location/m-p/3298610#M183459</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2004-06-08T08:06:34Z</dc:date>
    </item>
  </channel>
</rss>

