<?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 Load script in Boot in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/load-script-in-boot/m-p/2429764#M2571</link>
    <description>I need auto exec a perl script and the apache WEB Server engine, in the boot process.&lt;BR /&gt;&lt;BR /&gt;My server is HP9000 and HP-UX 11.0&lt;BR /&gt;&lt;BR /&gt;thanks.</description>
    <pubDate>Fri, 07 Jul 2000 18:54:01 GMT</pubDate>
    <dc:creator>Victor Salvador</dc:creator>
    <dc:date>2000-07-07T18:54:01Z</dc:date>
    <item>
      <title>Load script in Boot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/load-script-in-boot/m-p/2429764#M2571</link>
      <description>I need auto exec a perl script and the apache WEB Server engine, in the boot process.&lt;BR /&gt;&lt;BR /&gt;My server is HP9000 and HP-UX 11.0&lt;BR /&gt;&lt;BR /&gt;thanks.</description>
      <pubDate>Fri, 07 Jul 2000 18:54:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/load-script-in-boot/m-p/2429764#M2571</guid>
      <dc:creator>Victor Salvador</dc:creator>
      <dc:date>2000-07-07T18:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: Load script in Boot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/load-script-in-boot/m-p/2429765#M2572</link>
      <description>The simplest way is to create your startup script in the /sbin/rc3.d directory with the name SXXXprogram-name&lt;BR /&gt;where XXX is the order to start lowest first&lt;BR /&gt;&lt;BR /&gt;For the shutdown script, create it in the /sbin/rc2.d directory named KYYYprogram-name &lt;BR /&gt;where YYY is the order to stop lowest first.&lt;BR /&gt;&lt;BR /&gt;Brian&lt;BR /&gt;&amp;lt;*(((&amp;gt;&amp;lt; er</description>
      <pubDate>Fri, 07 Jul 2000 18:57:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/load-script-in-boot/m-p/2429765#M2572</guid>
      <dc:creator>Brian M. Fisher</dc:creator>
      <dc:date>2000-07-07T18:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Load script in Boot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/load-script-in-boot/m-p/2429766#M2573</link>
      <description>The recommended way is to: &lt;BR /&gt;&lt;BR /&gt;1) Copy the file /sbin/init.d/template to the script name you wish.  &lt;BR /&gt;2) Edit that script, adding the appropriate code in the start and stop sections.  &lt;BR /&gt;3) Create a resource file in /etc/rc.config.d that sets an environmental variable to 0 or 1.  Use 1 to start the script automatically.  The name of this environmental variable should match the name you supply for "CONTROL_VARIABLE" in the /sbin/init.d/script.&lt;BR /&gt;4) Finally, add soft links in the /sbin/rcX.d directories to control when in teh start sequence you wish the script to be activated.&lt;BR /&gt;ex: To start the script at run level 3 issue:&lt;BR /&gt;ln -s /sbin/init.d/script /sbin/rc3.d/S800script&lt;BR /&gt;ln -s /sbin/init.d/script /sbin/rc2.d/K200script&lt;BR /&gt;&lt;BR /&gt;By convention, the numbers should add up to 1000.  This ensures that processes are stopped in the inverse order of when they are started.&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Jul 2000 19:28:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/load-script-in-boot/m-p/2429766#M2573</guid>
      <dc:creator>Alan Riggs</dc:creator>
      <dc:date>2000-07-07T19:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: Load script in Boot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/load-script-in-boot/m-p/2429767#M2574</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;i give you a apache start/stop script at the attachment (put it in /sbin/init.d/apache).&lt;BR /&gt;&lt;BR /&gt;Greetings&lt;BR /&gt;&lt;BR /&gt;Andrew</description>
      <pubDate>Mon, 10 Jul 2000 05:42:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/load-script-in-boot/m-p/2429767#M2574</guid>
      <dc:creator>Andreas Voss</dc:creator>
      <dc:date>2000-07-10T05:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: Load script in Boot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/load-script-in-boot/m-p/2429768#M2575</link>
      <description>I had also problems to start a http server (not apache) during boot. Also the game hovercraft does not start its server during boot.&lt;BR /&gt;&lt;BR /&gt;What helps was a script in /sbin/rc2.d like follows:&lt;BR /&gt;&lt;BR /&gt;----&lt;BR /&gt;&lt;BR /&gt;#!/sbin/sh&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;PATH=/usr/sbin:/usr/bin:/sbin:/opt/thttpd/sbin&lt;BR /&gt;export PATH&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;echo 'cd /ansys' &amp;gt; /usr/local/bin/start_http&lt;BR /&gt;echo '/opt/thttpd/sbin/thttpd -r -d /ansys -u www &amp;amp;' &amp;gt;&amp;gt; /usr/local/bin/start_http&lt;BR /&gt;&lt;BR /&gt;/sbin/chmod 755 /usr/local/bin/start_http&lt;BR /&gt;&lt;BR /&gt;/usr/bin/at -f /usr/local/bin/start_http now + 2 minutes&lt;BR /&gt;&lt;BR /&gt;echo "Starting thttpd"&lt;BR /&gt;&lt;BR /&gt;exit 0&lt;BR /&gt;&lt;BR /&gt;------&lt;BR /&gt;Note that the server is started 2 minutes after booting by cron.</description>
      <pubDate>Mon, 10 Jul 2000 07:24:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/load-script-in-boot/m-p/2429768#M2575</guid>
      <dc:creator>Peter Eisentraeger</dc:creator>
      <dc:date>2000-07-10T07:24:34Z</dc:date>
    </item>
  </channel>
</rss>

