<?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 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/startup-process/m-p/2554538#M886599</link>
    <description>Hi:&lt;BR /&gt;&lt;BR /&gt;First, if a start script is place in directory /sbin/rc{X}.d then its corresponding kill script is put in directory /sbin/rc{X-1}.d&lt;BR /&gt;&lt;BR /&gt;A general rule-of-thumb is that the sequence number of the start script plus the sequence number of the kill script should add to 1000.&lt;BR /&gt;&lt;BR /&gt;HP's "official" recommendation is that run-level-2, sequence number 900 for start scripts and run-levl-1, sequence number 100 for kill scripts, can be freely used.  In fact, these numbers can be used more than once, since the concatenated script filename makes the entry unique.  Lexographical ordering of the filename portion then resolves the order of execution.&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Wed, 18 Jul 2001 22:47:46 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2001-07-18T22:47:46Z</dc:date>
    <item>
      <title>Startup Process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/startup-process/m-p/2554537#M886598</link>
      <description>Hi All!&lt;BR /&gt; what the numbers can I use to create my own startup/kill (like S900bdup/K100bddown) scripts on the UX11.0 ?</description>
      <pubDate>Wed, 18 Jul 2001 22:07:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/startup-process/m-p/2554537#M886598</guid>
      <dc:creator>Vogra</dc:creator>
      <dc:date>2001-07-18T22:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: Startup Process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/startup-process/m-p/2554538#M886599</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;First, if a start script is place in directory /sbin/rc{X}.d then its corresponding kill script is put in directory /sbin/rc{X-1}.d&lt;BR /&gt;&lt;BR /&gt;A general rule-of-thumb is that the sequence number of the start script plus the sequence number of the kill script should add to 1000.&lt;BR /&gt;&lt;BR /&gt;HP's "official" recommendation is that run-level-2, sequence number 900 for start scripts and run-levl-1, sequence number 100 for kill scripts, can be freely used.  In fact, these numbers can be used more than once, since the concatenated script filename makes the entry unique.  Lexographical ordering of the filename portion then resolves the order of execution.&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 18 Jul 2001 22:47:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/startup-process/m-p/2554538#M886599</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-07-18T22:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: Startup Process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/startup-process/m-p/2554539#M886600</link>
      <description>Hi Claudio,&lt;BR /&gt;&lt;BR /&gt;I would add one more thing to James's response.&lt;BR /&gt;By calling your scripys ...bdup and bddown you are not quite playing by the rules. You are not wrong just not standard.&lt;BR /&gt;&lt;BR /&gt;1) Start by copying /sbin/init.d/template to /sbin/init.d/bd&lt;BR /&gt;&lt;BR /&gt;2) This script should do both the down operation and the up operation. When it is executed by the startup/shutdown process rc, it is called with one of 4 arguments.&lt;BR /&gt;&lt;BR /&gt;  a) start_msg - Usually something like echo "Starting bd"&lt;BR /&gt;  b) stop_msg - Usually echo "Stopping bd"&lt;BR /&gt;  c) start - this section starts your process&lt;BR /&gt;  d) stop - this section stop your process&lt;BR /&gt;&lt;BR /&gt;The exit values are important but the template file will show you what these values should be.&lt;BR /&gt;The main idea is all operations are in one place and you only change one file. If you need to manually start or stop bd, you simple execute /sbin/init.d/bd start (or stop).&lt;BR /&gt;&lt;BR /&gt;3) Finally you create symbolic links from this bd file to the rcx.d directories. e.g.&lt;BR /&gt;ln -s /sbin/init.d/bd /sbin/rc3.d/S900bd&lt;BR /&gt;ln -s /sbin/init.d/bd /sbin/rc2.d/K100bd&lt;BR /&gt;&lt;BR /&gt;Note that the convention is to prefix the original name with SNNN and Knnn.&lt;BR /&gt;&lt;BR /&gt;If you do it like this, every unix guy on the planet will know how to safely modify/maintain your scripts.&lt;BR /&gt;&lt;BR /&gt;Regards, Clay</description>
      <pubDate>Thu, 19 Jul 2001 00:18:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/startup-process/m-p/2554539#M886600</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-07-19T00:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: Startup Process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/startup-process/m-p/2554540#M886601</link>
      <description>A good source of information on startup scripts is the document&lt;BR /&gt;&lt;BR /&gt;/usr/share/doc/start_up.txt (text version)&lt;BR /&gt;/usr/share/doc/start_up.ps  (postscript version)&lt;BR /&gt;&lt;BR /&gt;It's titled 'HP-UX 10.X Startup and Configuration', but it's equally valid for HP-UX11.X</description>
      <pubDate>Thu, 19 Jul 2001 05:51:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/startup-process/m-p/2554540#M886601</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2001-07-19T05:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: Startup Process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/startup-process/m-p/2554541#M886602</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;  U keep ur script in /sbin/init.d directory and make a link to /sbin/rcx.d. &lt;BR /&gt;&lt;BR /&gt;   Suppose U want to start ur script in runlevel 3 then U will have to put script in rc3.d and for killing in rc2.d. Follow this&lt;BR /&gt;#ln -s /sbin/init.d/script /sbin/rc3.d/Sxxxscript&lt;BR /&gt;&lt;BR /&gt;  Here xxx is any digits depend up on in what sequence U want to run ur script.&lt;BR /&gt;&lt;BR /&gt;   This U should kill in runlevel 2&lt;BR /&gt;#ln -s /sbin/init.d/script /Sbin/rc2.d/Kyyyscript&lt;BR /&gt;&lt;BR /&gt;   Here yyy is 1000-xxx.&lt;BR /&gt;&lt;BR /&gt;Best of luck&lt;BR /&gt;&lt;BR /&gt;Shahul</description>
      <pubDate>Thu, 19 Jul 2001 07:00:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/startup-process/m-p/2554541#M886602</guid>
      <dc:creator>Shahul</dc:creator>
      <dc:date>2001-07-19T07:00:35Z</dc:date>
    </item>
  </channel>
</rss>

