<?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: application startup-shutdown scripts--hp-ux 11i v2 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/application-startup-shutdown-scripts-hp-ux-11i-v2/m-p/3807058#M267682</link>
    <description>Hi (again) Rajim:&lt;BR /&gt;&lt;BR /&gt;To have your application be one of the last things started, create a link in '/sbin/rc3.d' like 'S750' (if that is unused).  This assumes that run-level-3 is your normal, highest run-level.  Look at your '/etc/inittab' to verify this.&lt;BR /&gt;&lt;BR /&gt;If a start script runs in sequence level 'N', then its corresponding kill script should be placed at sequence 'N-1'.  &lt;BR /&gt;&lt;BR /&gt;Remember too, the "rule of 1000".  A kill script and a start script should differ by this number.  Since you want to reverse the order of startup during a shutdown, 1000-750 = 250, so your startup as 'S750' should shutdown at 'K250'.&lt;BR /&gt;&lt;BR /&gt;Following this last rule means that you preserve the relationship between various dependent startup and shutdown tasks.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Fri, 16 Jun 2006 09:32:26 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2006-06-16T09:32:26Z</dc:date>
    <item>
      <title>application startup-shutdown scripts--hp-ux 11i v2</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/application-startup-shutdown-scripts-hp-ux-11i-v2/m-p/3807049#M267673</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;What is the best place to put these scripts to ensure graceful startup/shutdown of the applications? Is /sbin/init.d is the right place?  If it is how do I check the server status like "start" or "stop" to call proper application scripts in my script?&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;Rajim</description>
      <pubDate>Fri, 16 Jun 2006 07:22:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/application-startup-shutdown-scripts-hp-ux-11i-v2/m-p/3807049#M267673</guid>
      <dc:creator>sheevm</dc:creator>
      <dc:date>2006-06-16T07:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: application startup-shutdown scripts--hp-ux 11i v2</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/application-startup-shutdown-scripts-hp-ux-11i-v2/m-p/3807050#M267674</link>
      <description>Hi rajim,&lt;BR /&gt;&lt;BR /&gt;# man rc&lt;BR /&gt;&lt;BR /&gt;rgs,&lt;BR /&gt;&lt;BR /&gt;ran</description>
      <pubDate>Fri, 16 Jun 2006 07:28:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/application-startup-shutdown-scripts-hp-ux-11i-v2/m-p/3807050#M267674</guid>
      <dc:creator>rariasn</dc:creator>
      <dc:date>2006-06-16T07:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: application startup-shutdown scripts--hp-ux 11i v2</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/application-startup-shutdown-scripts-hp-ux-11i-v2/m-p/3807051#M267675</link>
      <description>Hi Rajim:&lt;BR /&gt;&lt;BR /&gt;Note only is that the best place, but is the proper place.&lt;BR /&gt;&lt;BR /&gt;For a complete understanding of the startup/shutdown paradigm from 10.x through 11.23, see:&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;See also, the manpages for 'rc(1M) and its referenced manpages.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/B2355-60105/rc.1M.html" target="_blank"&gt;http://docs.hp.com/en/B2355-60105/rc.1M.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 16 Jun 2006 07:31:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/application-startup-shutdown-scripts-hp-ux-11i-v2/m-p/3807051#M267675</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-06-16T07:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: application startup-shutdown scripts--hp-ux 11i v2</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/application-startup-shutdown-scripts-hp-ux-11i-v2/m-p/3807052#M267676</link>
      <description>Rajim,&lt;BR /&gt;&lt;BR /&gt;Copy /sbin/init.d/template to /sbin/init.d/yourapp and customize.  Then create start (S) and kill (K) scripts (symlinks to /sbin/init.d/yourapp) for the appropriate runlevels in the /sbin/rc?.d directories.&lt;BR /&gt;&lt;BR /&gt;PCS</description>
      <pubDate>Fri, 16 Jun 2006 07:31:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/application-startup-shutdown-scripts-hp-ux-11i-v2/m-p/3807052#M267676</guid>
      <dc:creator>spex</dc:creator>
      <dc:date>2006-06-16T07:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: application startup-shutdown scripts--hp-ux 11i v2</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/application-startup-shutdown-scripts-hp-ux-11i-v2/m-p/3807053#M267677</link>
      <description>Place configuration in /etc/rc.config.d/yourapp, if applicable.</description>
      <pubDate>Fri, 16 Jun 2006 07:34:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/application-startup-shutdown-scripts-hp-ux-11i-v2/m-p/3807053#M267677</guid>
      <dc:creator>spex</dc:creator>
      <dc:date>2006-06-16T07:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: application startup-shutdown scripts--hp-ux 11i v2</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/application-startup-shutdown-scripts-hp-ux-11i-v2/m-p/3807054#M267678</link>
      <description>rajim,&lt;BR /&gt;&lt;BR /&gt;It is indded the right placee.  In fact there is a template file in directory to help you build the script correctly. You will include bothe stop and start commands in one scripts&lt;BR /&gt;&lt;BR /&gt;Then in one on the /sbin/rcX.d directories you link to your /sbin/init.d script.  The script will either stop or start depending on the first letter of the script. (S or K)&lt;BR /&gt;&lt;BR /&gt;Finally, you put a file in /etc/rc.config.d containing a flag that tells the script to run or not run.&lt;BR /&gt;&lt;BR /&gt;It sounds complicated, but actually is quite easy - look at an eisting app for an example.</description>
      <pubDate>Fri, 16 Jun 2006 07:40:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/application-startup-shutdown-scripts-hp-ux-11i-v2/m-p/3807054#M267678</guid>
      <dc:creator>DCE</dc:creator>
      <dc:date>2006-06-16T07:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: application startup-shutdown scripts--hp-ux 11i v2</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/application-startup-shutdown-scripts-hp-ux-11i-v2/m-p/3807055#M267679</link>
      <description>This is great!! so much detail explaination.  I thank all of you.&lt;BR /&gt;&lt;BR /&gt;One more question before assigning the points:&lt;BR /&gt;&lt;BR /&gt;I want the &lt;BR /&gt;&lt;BR /&gt;application to shutdown first thing when system going down.&lt;BR /&gt;&lt;BR /&gt;application to start last when the system is coming up&lt;BR /&gt;&lt;BR /&gt;If I put the link like below will it work?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;/etc/rc3.d/K750app------&amp;gt;/sbin/init.d/app&lt;BR /&gt;/etc/rc3.d/S750app-------&amp;gt;/sbin/init.d/app&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;Raji</description>
      <pubDate>Fri, 16 Jun 2006 08:55:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/application-startup-shutdown-scripts-hp-ux-11i-v2/m-p/3807055#M267679</guid>
      <dc:creator>sheevm</dc:creator>
      <dc:date>2006-06-16T08:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: application startup-shutdown scripts--hp-ux 11i v2</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/application-startup-shutdown-scripts-hp-ux-11i-v2/m-p/3807056#M267680</link>
      <description>Hi Raji,&lt;BR /&gt;&lt;BR /&gt;It depends if K750/S750 is the highest number in rc3.d.&lt;BR /&gt;&lt;BR /&gt;Then this should be oke.&lt;BR /&gt;&lt;BR /&gt;GoodLuck&lt;BR /&gt;&lt;BR /&gt;Darrel Louis</description>
      <pubDate>Fri, 16 Jun 2006 08:59:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/application-startup-shutdown-scripts-hp-ux-11i-v2/m-p/3807056#M267680</guid>
      <dc:creator>Darrel Louis</dc:creator>
      <dc:date>2006-06-16T08:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: application startup-shutdown scripts--hp-ux 11i v2</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/application-startup-shutdown-scripts-hp-ux-11i-v2/m-p/3807057#M267681</link>
      <description>BTW: if the start-up is at runlevel 3, the start link goes in rc3.d, and the kill link in rc2.d</description>
      <pubDate>Fri, 16 Jun 2006 09:27:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/application-startup-shutdown-scripts-hp-ux-11i-v2/m-p/3807057#M267681</guid>
      <dc:creator>OldSchool</dc:creator>
      <dc:date>2006-06-16T09:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: application startup-shutdown scripts--hp-ux 11i v2</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/application-startup-shutdown-scripts-hp-ux-11i-v2/m-p/3807058#M267682</link>
      <description>Hi (again) Rajim:&lt;BR /&gt;&lt;BR /&gt;To have your application be one of the last things started, create a link in '/sbin/rc3.d' like 'S750' (if that is unused).  This assumes that run-level-3 is your normal, highest run-level.  Look at your '/etc/inittab' to verify this.&lt;BR /&gt;&lt;BR /&gt;If a start script runs in sequence level 'N', then its corresponding kill script should be placed at sequence 'N-1'.  &lt;BR /&gt;&lt;BR /&gt;Remember too, the "rule of 1000".  A kill script and a start script should differ by this number.  Since you want to reverse the order of startup during a shutdown, 1000-750 = 250, so your startup as 'S750' should shutdown at 'K250'.&lt;BR /&gt;&lt;BR /&gt;Following this last rule means that you preserve the relationship between various dependent startup and shutdown tasks.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 16 Jun 2006 09:32:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/application-startup-shutdown-scripts-hp-ux-11i-v2/m-p/3807058#M267682</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-06-16T09:32:26Z</dc:date>
    </item>
  </channel>
</rss>

