<?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 process after boot in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/startup-process-after-boot/m-p/3666280#M242853</link>
    <description>Hi Cara,&lt;BR /&gt;&lt;BR /&gt;To start a process when the system boots,you have to copy the startup script to /sbin/init.d/ directory and make software links:&lt;BR /&gt;&lt;BR /&gt;For example to start oracle when the system boots and if the script name is dbora)&lt;BR /&gt;&lt;BR /&gt;To start:&lt;BR /&gt;ln -s /sbin/init.d/dbora /sbin/rc2.d/S999dbora&lt;BR /&gt;&lt;BR /&gt;To stop:&lt;BR /&gt;ln -s /sbin/init.d/dbora /sbin/rc1.d/K108dbora&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Depending on which run level you want to start your oracle database, you need to prepare a script and put in /sbin/init.d/.&lt;BR /&gt;Then appropriate start and kill scripts in /sbin/rcx.d/&lt;BR /&gt;&lt;BR /&gt;You can refer /sbin/init.d/template script to start with.&lt;BR /&gt;&lt;BR /&gt;And also have the file in /etc/rc.config.d oracle which has the following lines&lt;BR /&gt;ORACLE_START=1; export ORACLE_START&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;IA&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 07 Nov 2005 19:33:35 GMT</pubDate>
    <dc:creator>Indira Aramandla</dc:creator>
    <dc:date>2005-11-07T19:33:35Z</dc:date>
    <item>
      <title>startup process after boot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/startup-process-after-boot/m-p/3666279#M242852</link>
      <description>If I would like to start a process on boot, what directory and file do I add the process to?&lt;BR /&gt;i.e. processname environment start</description>
      <pubDate>Mon, 07 Nov 2005 19:12:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/startup-process-after-boot/m-p/3666279#M242852</guid>
      <dc:creator>Cara Rollins</dc:creator>
      <dc:date>2005-11-07T19:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: startup process after boot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/startup-process-after-boot/m-p/3666280#M242853</link>
      <description>Hi Cara,&lt;BR /&gt;&lt;BR /&gt;To start a process when the system boots,you have to copy the startup script to /sbin/init.d/ directory and make software links:&lt;BR /&gt;&lt;BR /&gt;For example to start oracle when the system boots and if the script name is dbora)&lt;BR /&gt;&lt;BR /&gt;To start:&lt;BR /&gt;ln -s /sbin/init.d/dbora /sbin/rc2.d/S999dbora&lt;BR /&gt;&lt;BR /&gt;To stop:&lt;BR /&gt;ln -s /sbin/init.d/dbora /sbin/rc1.d/K108dbora&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Depending on which run level you want to start your oracle database, you need to prepare a script and put in /sbin/init.d/.&lt;BR /&gt;Then appropriate start and kill scripts in /sbin/rcx.d/&lt;BR /&gt;&lt;BR /&gt;You can refer /sbin/init.d/template script to start with.&lt;BR /&gt;&lt;BR /&gt;And also have the file in /etc/rc.config.d oracle which has the following lines&lt;BR /&gt;ORACLE_START=1; export ORACLE_START&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;IA&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 07 Nov 2005 19:33:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/startup-process-after-boot/m-p/3666280#M242853</guid>
      <dc:creator>Indira Aramandla</dc:creator>
      <dc:date>2005-11-07T19:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: startup process after boot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/startup-process-after-boot/m-p/3666281#M242854</link>
      <description>Hi Cara:&lt;BR /&gt;&lt;BR /&gt;The "original", definitive whitepaper on this subject appeared during the 9x to 10x rework of HP-UX. It's available on the docs.hp.com website under 10.x and is definitely work reading:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/934/startup.pdf" target="_blank"&gt;http://docs.hp.com/en/934/startup.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Mon, 07 Nov 2005 20:12:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/startup-process-after-boot/m-p/3666281#M242854</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2005-11-07T20:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: startup process after boot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/startup-process-after-boot/m-p/3666282#M242855</link>
      <description>Okay, here is a sample script. Is this correct?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;&lt;BR /&gt;/pathname/processname arg1 start&lt;BR /&gt;&lt;BR /&gt;if [ $? = 0 ]&lt;BR /&gt;  then exit 0&lt;BR /&gt;  else exit 1&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;What are the rc1.d and rc2.d processes? I'm assuming the system will read the rc2.d files on startup by default and the rc1.d by default on shutdown. Do I then need to specify start and stop in my script? It's not an oracle script, just a database process called cybermation I have been starting manually from command line after booting. The syntax is processname arg1 start. I'm a little confused here. What is the difference in rc1,2,3 etc?? Can you explain this a little? Thanks for your help.&lt;BR /&gt;&lt;BR /&gt;To start:&lt;BR /&gt;ln -s /sbin/init.d/dbora /sbin/rc2.d/S999dbora&lt;BR /&gt;&lt;BR /&gt;To stop:&lt;BR /&gt;ln -s /sbin/init.d/dbora /sbin/rc1.d/K108dbora</description>
      <pubDate>Mon, 07 Nov 2005 20:57:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/startup-process-after-boot/m-p/3666282#M242855</guid>
      <dc:creator>Cara Rollins</dc:creator>
      <dc:date>2005-11-07T20:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: startup process after boot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/startup-process-after-boot/m-p/3666283#M242856</link>
      <description>Hi Cara,&lt;BR /&gt;&lt;BR /&gt;rc1.d and rc2.dâ ¦â ¦.. are Run-level Directories. &lt;BR /&gt;&lt;BR /&gt;The /sbin/rc#.d (where # is a run-level [0..6]) directories are startup and shutdown sequencer directories. They contain only symbolic links to startup/shutdown scripts in /sbin/init.d that are executed by /sbin/rc on transition to a specific run level. &lt;BR /&gt;&lt;BR /&gt;For example, the /sbin/rc3.d directory contains symlinks to scripts that are executed when entering run level 3. &lt;BR /&gt;&lt;BR /&gt;These directories contain two types of link files: start links and kill links. Start links have names beginning with the capital letter â  Sâ   and are invoked with the â  startâ   argument at system boot time or on transition to a higher run level. Kill links have names beginning with the capital letter â  Kâ   and are invoked with the â  stopâ   argument at system shutdown time, or when moving to a lower run level. &lt;BR /&gt;&lt;BR /&gt;Yes your script should specify the start  and stop.  The example that I gave dbora is a user defined script where you can have functions defined in the script. One to start and the other to stop.  The pdf provided by James RF  has more details.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I hope this helps.&lt;BR /&gt;&lt;BR /&gt;IA&lt;BR /&gt;</description>
      <pubDate>Mon, 07 Nov 2005 21:47:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/startup-process-after-boot/m-p/3666283#M242856</guid>
      <dc:creator>Indira Aramandla</dc:creator>
      <dc:date>2005-11-07T21:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: startup process after boot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/startup-process-after-boot/m-p/3666284#M242857</link>
      <description>That helps tremendously. Thank you so much.</description>
      <pubDate>Tue, 08 Nov 2005 08:10:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/startup-process-after-boot/m-p/3666284#M242857</guid>
      <dc:creator>Cara Rollins</dc:creator>
      <dc:date>2005-11-08T08:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: startup process after boot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/startup-process-after-boot/m-p/3666285#M242858</link>
      <description>Try to assign points to people who helped you here, &lt;A href="http://forums1.itrc.hp.com/service/forums/helptips.do?#28" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/helptips.do?#28&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Tue, 08 Nov 2005 08:15:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/startup-process-after-boot/m-p/3666285#M242858</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2005-11-08T08:15:30Z</dc:date>
    </item>
  </channel>
</rss>

