<?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: rc script hangs at system reboot. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-script-hangs-at-system-reboot/m-p/2834206#M89635</link>
    <description>HI&lt;BR /&gt;&lt;BR /&gt;Two options&lt;BR /&gt;&lt;BR /&gt;1.  Move this startup script to last in the startup sequence.&lt;BR /&gt;&lt;BR /&gt;2.   In the script pipe each line yo a log file.&lt;BR /&gt;&lt;BR /&gt;i.e.&lt;BR /&gt;&lt;BR /&gt;whatever &amp;gt; /tmp/Java.log&lt;BR /&gt;next     &amp;gt;&amp;gt;/ tmp/Java.log&lt;BR /&gt;next     &amp;gt;&amp;gt;/tmp/Java.log&lt;BR /&gt;&lt;BR /&gt;Then examine the log file.&lt;BR /&gt;&lt;BR /&gt;If the script start from the command prompt and not from the script then environment is to blame.&lt;BR /&gt;&lt;BR /&gt;Are all the files systems available when the script is run?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Paula</description>
    <pubDate>Mon, 28 Oct 2002 11:34:03 GMT</pubDate>
    <dc:creator>Paula J Frazer-Campbell</dc:creator>
    <dc:date>2002-10-28T11:34:03Z</dc:date>
    <item>
      <title>rc script hangs at system reboot.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-script-hangs-at-system-reboot/m-p/2834204#M89633</link>
      <description>Hi All,&lt;BR /&gt;I need to start up a java program when the HP-UX system reboots. I have a rc script (say ABC)(in /sbin/init.d ) that calls another script (say XYZ)which starts up the java process. A symbolic link created in /sbin/rc3.d directory for this script (ABC). &lt;BR /&gt;All the environment variables required for my java program are set correctly in the XYZ script. My java process starts up, but the problem is no other start up scripts in rc3.d get executed, that have symblic links in sequence after the one I create. The HP-UX console shows me  the status toggling between Start/Busy for this process. I am not sure why this is hanging.  Could I have some help on this asap please. Thanks in advance - Vivek</description>
      <pubDate>Mon, 28 Oct 2002 11:26:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc-script-hangs-at-system-reboot/m-p/2834204#M89633</guid>
      <dc:creator>Vivek_10</dc:creator>
      <dc:date>2002-10-28T11:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: rc script hangs at system reboot.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-script-hangs-at-system-reboot/m-p/2834205#M89634</link>
      <description>Hi &lt;BR /&gt;Is there any output in /etc/rc.log for this startupscript ?&lt;BR /&gt;&lt;BR /&gt;Chris</description>
      <pubDate>Mon, 28 Oct 2002 11:24:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc-script-hangs-at-system-reboot/m-p/2834205#M89634</guid>
      <dc:creator>Christian Gebhardt</dc:creator>
      <dc:date>2002-10-28T11:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: rc script hangs at system reboot.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-script-hangs-at-system-reboot/m-p/2834206#M89635</link>
      <description>HI&lt;BR /&gt;&lt;BR /&gt;Two options&lt;BR /&gt;&lt;BR /&gt;1.  Move this startup script to last in the startup sequence.&lt;BR /&gt;&lt;BR /&gt;2.   In the script pipe each line yo a log file.&lt;BR /&gt;&lt;BR /&gt;i.e.&lt;BR /&gt;&lt;BR /&gt;whatever &amp;gt; /tmp/Java.log&lt;BR /&gt;next     &amp;gt;&amp;gt;/ tmp/Java.log&lt;BR /&gt;next     &amp;gt;&amp;gt;/tmp/Java.log&lt;BR /&gt;&lt;BR /&gt;Then examine the log file.&lt;BR /&gt;&lt;BR /&gt;If the script start from the command prompt and not from the script then environment is to blame.&lt;BR /&gt;&lt;BR /&gt;Are all the files systems available when the script is run?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Paula</description>
      <pubDate>Mon, 28 Oct 2002 11:34:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc-script-hangs-at-system-reboot/m-p/2834206#M89635</guid>
      <dc:creator>Paula J Frazer-Campbell</dc:creator>
      <dc:date>2002-10-28T11:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: rc script hangs at system reboot.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-script-hangs-at-system-reboot/m-p/2834207#M89636</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If you put set -x on top of the script, and you run it by hand, you might be able to see what causes the script to hang.&lt;BR /&gt;&lt;BR /&gt;C.</description>
      <pubDate>Mon, 28 Oct 2002 11:36:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc-script-hangs-at-system-reboot/m-p/2834207#M89636</guid>
      <dc:creator>Clemens van Everdingen</dc:creator>
      <dc:date>2002-10-28T11:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: rc script hangs at system reboot.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-script-hangs-at-system-reboot/m-p/2834208#M89637</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If your ABC script simply calls XYZ, it will wait for XYZ to finish. This won't happen because XYZ is your application, not just a script which starts it up.&lt;BR /&gt;&lt;BR /&gt;Change your ABC script to run XYZ as an asynchronous process, either:&lt;BR /&gt;&lt;BR /&gt;nohup XYZ &amp;amp;&lt;BR /&gt;or&lt;BR /&gt;XYZ &amp;amp;&lt;BR /&gt;&lt;BR /&gt;In the latter case you should insert the statement &lt;BR /&gt;trap '' 1&lt;BR /&gt;in the XYZ script to prevent it terminating when its parent (ABC) exits.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;John&lt;BR /&gt;</description>
      <pubDate>Mon, 28 Oct 2002 11:39:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc-script-hangs-at-system-reboot/m-p/2834208#M89637</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2002-10-28T11:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: rc script hangs at system reboot.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-script-hangs-at-system-reboot/m-p/2834209#M89638</link>
      <description>Hi All,&lt;BR /&gt;Thanx for the immediate response.&lt;BR /&gt;rc.log has an output..in the sense when I do a "ps -eaf | grep java", my process is running.&lt;BR /&gt;As I told you the startup script after this in sequence doensnt get called at all.&lt;BR /&gt;Here is the dir listing:&lt;BR /&gt;"&lt;BR /&gt;troika:/sbin/rc3.d#&amp;gt;ls -lrt S*&lt;BR /&gt;&lt;BR /&gt;lrwxrwxrwx   1 root       sys             18 Oct 26 14:14 S950cdodb -&amp;gt; /sbin/init.d/cdodb&lt;BR /&gt;&lt;BR /&gt;lrwxrwxrwx   1 root       sys             23 Oct 26 14:14 S975cdocompdmn -&amp;gt; /sbin/init.d/cdocompdmn&lt;BR /&gt;"&lt;BR /&gt;&lt;BR /&gt;S950cdodb gets executed, the java process runs but the next one  S975cdocompdmn isnt called.&lt;BR /&gt;&lt;BR /&gt;Iam still trying though...&lt;BR /&gt;Vivek.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 28 Oct 2002 11:42:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc-script-hangs-at-system-reboot/m-p/2834209#M89638</guid>
      <dc:creator>Vivek_10</dc:creator>
      <dc:date>2002-10-28T11:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: rc script hangs at system reboot.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-script-hangs-at-system-reboot/m-p/2834210#M89639</link>
      <description>Make sure that your startup script actually exits. You can do this by manually running it from a shell prompt. Your Java program should be placed in the background using &amp;amp; and protected from shell termination using nohup. The Java program will have been started correctly if the parent PID is 1 (init). If it is anything else, the script is waiting for the Java program to finish, hence no progress towards the next start script.</description>
      <pubDate>Mon, 28 Oct 2002 12:37:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc-script-hangs-at-system-reboot/m-p/2834210#M89639</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2002-10-28T12:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: rc script hangs at system reboot.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-script-hangs-at-system-reboot/m-p/2834211#M89640</link>
      <description>Hi All..&lt;BR /&gt;&lt;BR /&gt;Thanks for the help ... &lt;BR /&gt;The script works with nohup.&lt;BR /&gt;Vivek.</description>
      <pubDate>Thu, 07 Nov 2002 07:58:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc-script-hangs-at-system-reboot/m-p/2834211#M89640</guid>
      <dc:creator>Vivek_10</dc:creator>
      <dc:date>2002-11-07T07:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: rc script hangs at system reboot.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-script-hangs-at-system-reboot/m-p/2834212#M89641</link>
      <description>Lot of Vivek's here in the forum.&lt;BR /&gt;&lt;BR /&gt;This side of the world  does not properly respond to the points system.&lt;BR /&gt;I am also from this side of the world.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Vivek take a look at the points system and get some points to the admins who have helped you.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Thu, 07 Nov 2002 08:47:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc-script-hangs-at-system-reboot/m-p/2834212#M89641</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2002-11-07T08:47:56Z</dc:date>
    </item>
  </channel>
</rss>

