<?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 start application when the machine start in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/start-application-when-the-machine-start/m-p/2717646#M62250</link>
    <description>I hav e an application that I want to launch when the machine reboot..&lt;BR /&gt;How can I do&lt;BR /&gt;Thinks for your help&lt;BR /&gt;</description>
    <pubDate>Mon, 06 May 2002 12:21:02 GMT</pubDate>
    <dc:creator>malki_3</dc:creator>
    <dc:date>2002-05-06T12:21:02Z</dc:date>
    <item>
      <title>start application when the machine start</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/start-application-when-the-machine-start/m-p/2717646#M62250</link>
      <description>I hav e an application that I want to launch when the machine reboot..&lt;BR /&gt;How can I do&lt;BR /&gt;Thinks for your help&lt;BR /&gt;</description>
      <pubDate>Mon, 06 May 2002 12:21:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/start-application-when-the-machine-start/m-p/2717646#M62250</guid>
      <dc:creator>malki_3</dc:creator>
      <dc:date>2002-05-06T12:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: start application when the machine start</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/start-application-when-the-machine-start/m-p/2717647#M62251</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;check out:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x26c0119c3420d411b66300108302854d,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x26c0119c3420d411b66300108302854d,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Gideon</description>
      <pubDate>Mon, 06 May 2002 12:22:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/start-application-when-the-machine-start/m-p/2717647#M62251</guid>
      <dc:creator>G. Vrijhoeven</dc:creator>
      <dc:date>2002-05-06T12:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: start application when the machine start</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/start-application-when-the-machine-start/m-p/2717648#M62252</link>
      <description>try reading /usr/share/doc/start_up.txt on your system. This explains it all.</description>
      <pubDate>Mon, 06 May 2002 12:27:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/start-application-when-the-machine-start/m-p/2717648#M62252</guid>
      <dc:creator>melvyn burnard</dc:creator>
      <dc:date>2002-05-06T12:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: start application when the machine start</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/start-application-when-the-machine-start/m-p/2717649#M62253</link>
      <description>But I do it forever so this application must be running on each time the server reboot</description>
      <pubDate>Mon, 06 May 2002 12:30:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/start-application-when-the-machine-start/m-p/2717649#M62253</guid>
      <dc:creator>malki_3</dc:creator>
      <dc:date>2002-05-06T12:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: start application when the machine start</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/start-application-when-the-machine-start/m-p/2717650#M62254</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;If you haven't, read either version of the document below. I???ll summarize the key points here. &lt;BR /&gt;&lt;BR /&gt;/usr/share/doc/start_up.txt &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/hpux/onlinedocs/os/startup.html" target="_blank"&gt;http://docs.hp.com/hpux/onlinedocs/os/startup.html&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;The file /sbin/init.d/template is a good starting place for making your own start/stop scripts. &lt;BR /&gt;&lt;BR /&gt;The /sbin/init.d directory contains all scripts used to startup and shutdown various subsystems. &lt;BR /&gt;&lt;BR /&gt;Each script under /sbin/init.d should perform BOTH the startup and shutdown functions. In order to control the functionality within the script, each must also support standard arguments and exit codes. Scripts must be written for the POSIX shell. A template script may be found in /sbin/init.d/template. &lt;BR /&gt;&lt;BR /&gt;There is no reason why the startup and shutdown script cannot start/kill multiple, but related processes. Remember to choose the appropriate rc&lt;N&gt;.d directory -- one (1) is for core services; two (2) is for multiuser run-state; three (3) is for networked, multi-user; and four (4) is for graphical interfaces. Depending on the processes you are starting, or stopping, you want to make sure prerequisite services exist. &lt;BR /&gt;&lt;BR /&gt;Each script in /sbin/init.d performs BOTH the startup and shutdown functions, and each will have two links pointing towards the script from /sbin/rc*.d: one for the start action and one for the stop action. &lt;BR /&gt;&lt;BR /&gt;Start scripts begin with "S"; Kill (stop) scripts begin with "K". The order of execution for kill scripts is the reverse of the startup ones. &lt;BR /&gt;&lt;BR /&gt;if a start script is placed 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;Subsystems should be killed in the opposite order they were started. This implies that kill scripts will generally not have the same numbers as their start script counterparts. If two subsystems must be started in a given order due to dependencies (e.g., S200sys1 followed by S300uses_sys1), the counterparts to these scripts must be numbered so that the subsystems are stopped in the opposite order in which they were started (e.g., K700uses_sys1 followed by K800sys1). The '1000' rule leads to this behavior. &lt;BR /&gt;&lt;BR /&gt;Regards! &lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;/N&gt;</description>
      <pubDate>Mon, 06 May 2002 12:30:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/start-application-when-the-machine-start/m-p/2717650#M62254</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-05-06T12:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: start application when the machine start</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/start-application-when-the-machine-start/m-p/2717651#M62255</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;file /sbin/init.d/template is a good starting place for making your own start/stop scripts. &lt;BR /&gt;&lt;BR /&gt;Each script under /sbin/init.d does both the startup and shutdow. And once you write your script and test it out you create two links one for startup and one for shutdown. &lt;BR /&gt;&lt;BR /&gt;for eg: you create a script called "xyz" make it an executable and set the right permissions and test it &lt;BR /&gt;you want this to come up in run level 3. create a link &lt;BR /&gt;&lt;BR /&gt;ln -s /sbin/init.d/xyz /sbin/rc3.d/S992xyz &lt;BR /&gt;ln -s /sbin/init.d/xyz /sbin/rc2.d/K992xyz &lt;BR /&gt;&lt;BR /&gt;This ensures that your scripts does a start in run level 3 and a stop in run level 2 &lt;BR /&gt;&lt;BR /&gt;How to test it.&lt;BR /&gt;Run &lt;BR /&gt;#/sbin/rc3.d/S992xyz start&lt;BR /&gt;&lt;BR /&gt;If it don't work and if you want to debug then add &lt;BR /&gt;set -x &lt;BR /&gt;on top of /sbin/init.d/xyz script.&lt;BR /&gt;Run it again and it will run it in debug mode.&lt;BR /&gt;&lt;BR /&gt;Sachin</description>
      <pubDate>Mon, 06 May 2002 12:31:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/start-application-when-the-machine-start/m-p/2717651#M62255</guid>
      <dc:creator>Sachin Patel</dc:creator>
      <dc:date>2002-05-06T12:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: start application when the machine start</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/start-application-when-the-machine-start/m-p/2717652#M62256</link>
      <description>This has been heavily covered here, but...&lt;BR /&gt;&lt;BR /&gt;Quick &amp;amp; Dirty -&lt;BR /&gt;&lt;BR /&gt;Put your start | stop script for your application in /sbin/init.d/ - check the scripts there for examples if you don't have a script.&lt;BR /&gt;&lt;BR /&gt;Create links in /sbin/rc#.d/ as so...&lt;BR /&gt;&lt;BR /&gt;ln -s /sbin/init.d/appscript /sbin/rc2.d/K123app&lt;BR /&gt;&lt;BR /&gt;ln -s /sbin/init.d/appscript /sbin/rc3.d/S877app&lt;BR /&gt;&lt;BR /&gt;This will run the script with the "stop" (K) parameter when the box goes down to run-level 2, and with the "start" (S) parameter when it enters run-level 3.&lt;BR /&gt;&lt;BR /&gt;The K### and S### numbers are usually set to add up to 1000 - That's convention, not required.&lt;BR /&gt;&lt;BR /&gt;Any configuration files tend to go in /etc/rc.config.d/&lt;BR /&gt;&lt;BR /&gt;At any rate, a search of the forums will give you a TON of info.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Jon&lt;BR /&gt;</description>
      <pubDate>Mon, 06 May 2002 12:35:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/start-application-when-the-machine-start/m-p/2717652#M62256</guid>
      <dc:creator>Jon Mattatall</dc:creator>
      <dc:date>2002-05-06T12:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: start application when the machine start</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/start-application-when-the-machine-start/m-p/2717653#M62257</link>
      <description>Hi Malki,&lt;BR /&gt;&lt;BR /&gt;Copy your startup shell script to the /sbin/init.d directory. Then create links to the /sbin/rc3.d directory beginning with the letter 'K' and a serial number alongwith your script name and a 'S' with a serial number alongwith your script name.&lt;BR /&gt;&lt;BR /&gt;Please read man rc as the sequence of startup and shutdown matters.&lt;BR /&gt;&lt;BR /&gt;Thats all.&lt;BR /&gt;&lt;BR /&gt;-Sukant</description>
      <pubDate>Mon, 06 May 2002 12:49:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/start-application-when-the-machine-start/m-p/2717653#M62257</guid>
      <dc:creator>Sukant Naik</dc:creator>
      <dc:date>2002-05-06T12:49:13Z</dc:date>
    </item>
  </channel>
</rss>

