<?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: script execution order in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-execution-order/m-p/5058249#M436210</link>
    <description>Usually there is a corresponding file in /etc/rc.config.d in which you set a parameter to enable/disable running of the script in say rc2.d during startup.&lt;BR /&gt;Is there any such file which is set to not run the script at startup ?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Ninad</description>
    <pubDate>Mon, 16 Jul 2007 06:22:03 GMT</pubDate>
    <dc:creator>Ninad_1</dc:creator>
    <dc:date>2007-07-16T06:22:03Z</dc:date>
    <item>
      <title>script execution order</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-execution-order/m-p/5058246#M436207</link>
      <description>Hi All,&lt;BR /&gt;I have a software whose installation does not require a reboot. but the softwatre with which it is being installed with the same swinstall session.&lt;BR /&gt;&lt;BR /&gt;The configure script for the scripts is being called after the reboot.&lt;BR /&gt;&lt;BR /&gt;In the configure(SD) script I am creating links in rc2.d which points to a script in /sbin/init.d which is supposed to start a daemon for the application.&lt;BR /&gt;&lt;BR /&gt;Now the problem is: &lt;BR /&gt;&lt;BR /&gt;When the system is rebooted by the swinstall session, the configure scripts is called after the reboot by SD, hence the links are created in rc2.d but the daemon is not starting. &lt;BR /&gt;&lt;BR /&gt;The OS is not even calling the script which is pointed by the links. &lt;BR /&gt;&lt;BR /&gt;Any ideas : &lt;BR /&gt;Why is it happining ? why the OS is not executing the rc script even if I am creating the links before the rc initialization starts?&lt;BR /&gt;&lt;BR /&gt;or is it a case that the rc initialisation and the configuration are both running simultaneously and the rc executor makes some kind of list of files before executing the scripts and the newly added links are not taken into account?  &lt;BR /&gt;&lt;BR /&gt;Thanks &lt;BR /&gt;Sri</description>
      <pubDate>Mon, 16 Jul 2007 05:51:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-execution-order/m-p/5058246#M436207</guid>
      <dc:creator>Srimalik</dc:creator>
      <dc:date>2007-07-16T05:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: script execution order</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-execution-order/m-p/5058247#M436208</link>
      <description>Have you looked for error messages in /etc/rc.log?&lt;BR /&gt;&lt;BR /&gt;What happens if you try to run the program manually?&lt;BR /&gt;&lt;BR /&gt;Mark Syder (like the drink but spelt different)</description>
      <pubDate>Mon, 16 Jul 2007 05:58:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-execution-order/m-p/5058247#M436208</guid>
      <dc:creator>MarkSyder</dc:creator>
      <dc:date>2007-07-16T05:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: script execution order</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-execution-order/m-p/5058248#M436209</link>
      <description>There are no error messages...&lt;BR /&gt;&lt;BR /&gt;We have a valid start_msg in our script,,,and that too is not printed in rc.log&lt;BR /&gt;&lt;BR /&gt;this means that the initialization is not callin this script with start_msg argument. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 16 Jul 2007 06:10:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-execution-order/m-p/5058248#M436209</guid>
      <dc:creator>Srimalik</dc:creator>
      <dc:date>2007-07-16T06:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: script execution order</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-execution-order/m-p/5058249#M436210</link>
      <description>Usually there is a corresponding file in /etc/rc.config.d in which you set a parameter to enable/disable running of the script in say rc2.d during startup.&lt;BR /&gt;Is there any such file which is set to not run the script at startup ?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Ninad</description>
      <pubDate>Mon, 16 Jul 2007 06:22:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-execution-order/m-p/5058249#M436210</guid>
      <dc:creator>Ninad_1</dc:creator>
      <dc:date>2007-07-16T06:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: script execution order</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-execution-order/m-p/5058250#M436211</link>
      <description>No...there is no such script :( &lt;BR /&gt;&lt;BR /&gt;The interesting thing is that when I take a second reboot ..every thing works fine :)..because the links are already present there .&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;It seems to me that the rc system first makes a list of all the scripts for a particular runlevel and then executes them.&lt;BR /&gt;&lt;BR /&gt;so, somehow the rc system makes that list before swconfig is run ( my configure script is executed ), hence the newly created links are not present in the list as they are not created yet and hence ignored when the first reboot occurs.&lt;BR /&gt;&lt;BR /&gt;At the time of second reboot, the list will include the links and everhing will work fine&lt;BR /&gt;&lt;BR /&gt;Please let me know your comments.</description>
      <pubDate>Mon, 16 Jul 2007 06:33:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-execution-order/m-p/5058250#M436211</guid>
      <dc:creator>Srimalik</dc:creator>
      <dc:date>2007-07-16T06:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: script execution order</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-execution-order/m-p/5058251#M436212</link>
      <description>I say this because there is a links in rc2.d (S210swconfig)....which points to /sbin/init.d/swconfig as both the services are in same run levels there can be problems..&lt;BR /&gt;&lt;BR /&gt;comments please..</description>
      <pubDate>Mon, 16 Jul 2007 06:38:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-execution-order/m-p/5058251#M436212</guid>
      <dc:creator>Srimalik</dc:creator>
      <dc:date>2007-07-16T06:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: script execution order</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-execution-order/m-p/5058252#M436213</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;The solution is to move the link creation code to postinstall script as the list of scripts to be executed for this runlevel is created before the links are created in configure.&lt;BR /&gt;&lt;BR /&gt;Thanks &lt;BR /&gt;Sri</description>
      <pubDate>Mon, 16 Jul 2007 08:25:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-execution-order/m-p/5058252#M436213</guid>
      <dc:creator>Srimalik</dc:creator>
      <dc:date>2007-07-16T08:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: script execution order</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-execution-order/m-p/5058253#M436214</link>
      <description>&amp;gt;The solution is to move the link creation code to postinstall script&lt;BR /&gt;&lt;BR /&gt;That would be one solution.  But violates the spirit of postinstall/configure.  I.e. your solution wouldn't work on the old diskless workstations.&lt;BR /&gt;&lt;BR /&gt;You may just have your configure script start up your rc script.</description>
      <pubDate>Mon, 16 Jul 2007 12:19:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-execution-order/m-p/5058253#M436214</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-07-16T12:19:22Z</dc:date>
    </item>
  </channel>
</rss>

