<?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 Startup script hang in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/startup-script-hang/m-p/2848072#M92702</link>
    <description>When I reboot either of my servers I have a problem with the startup of the ARCserve Universal Agent v1.39. The 'asagent' script, which is properly referenced in rc2.d, never exits. If I reboot, I have to login via another terminal and kill the script that is driving it to permit the remainder of the startup sequence to proceed. I have tried forcing an exit in the script at what I thought was an appropriate place but it refuses to relinquish control. The attached script is the one that is actually doing the work. It is called from the /sbin/init.d/asagent script which is listed here:&lt;BR /&gt;&lt;BR /&gt;#!/sbin/sh &lt;BR /&gt;# installed by postinstall on Fri Nov 10 13:22:25 EST 2000&lt;BR /&gt;case $1 in&lt;BR /&gt;   'start_msg')&lt;BR /&gt;      echo  "Starting ARCserve Agent:" &lt;BR /&gt;        ;;&lt;BR /&gt;   'start')&lt;BR /&gt;      (/usr/CYEagent/asagent start) 2&amp;gt;&amp;amp;1 | /usr/bin/tee /dev/console &lt;BR /&gt;        ;;&lt;BR /&gt;   'stop_msg')&lt;BR /&gt;      echo  "Stopping ARCserve Agent:"&lt;BR /&gt;        ;;&lt;BR /&gt;   'stop')&lt;BR /&gt;      (/usr/CYEagent/asagent stop) 2&amp;gt;&amp;amp;1 | /usr/bin/tee /dev/console&lt;BR /&gt;        ;;&lt;BR /&gt;   *)&lt;BR /&gt;      echo "usage: `/usr/bin/basename $0` {start|stop}"&lt;BR /&gt;        ;;&lt;BR /&gt;esac&lt;BR /&gt;&lt;BR /&gt;Has anyone seen this behavior before and is there a cure?&lt;BR /&gt;&lt;BR /&gt;Look for 'DJS' in the attached script to see where I tried to make it exit.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 19 Nov 2002 18:12:46 GMT</pubDate>
    <dc:creator>Don Spare</dc:creator>
    <dc:date>2002-11-19T18:12:46Z</dc:date>
    <item>
      <title>Startup script hang</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/startup-script-hang/m-p/2848072#M92702</link>
      <description>When I reboot either of my servers I have a problem with the startup of the ARCserve Universal Agent v1.39. The 'asagent' script, which is properly referenced in rc2.d, never exits. If I reboot, I have to login via another terminal and kill the script that is driving it to permit the remainder of the startup sequence to proceed. I have tried forcing an exit in the script at what I thought was an appropriate place but it refuses to relinquish control. The attached script is the one that is actually doing the work. It is called from the /sbin/init.d/asagent script which is listed here:&lt;BR /&gt;&lt;BR /&gt;#!/sbin/sh &lt;BR /&gt;# installed by postinstall on Fri Nov 10 13:22:25 EST 2000&lt;BR /&gt;case $1 in&lt;BR /&gt;   'start_msg')&lt;BR /&gt;      echo  "Starting ARCserve Agent:" &lt;BR /&gt;        ;;&lt;BR /&gt;   'start')&lt;BR /&gt;      (/usr/CYEagent/asagent start) 2&amp;gt;&amp;amp;1 | /usr/bin/tee /dev/console &lt;BR /&gt;        ;;&lt;BR /&gt;   'stop_msg')&lt;BR /&gt;      echo  "Stopping ARCserve Agent:"&lt;BR /&gt;        ;;&lt;BR /&gt;   'stop')&lt;BR /&gt;      (/usr/CYEagent/asagent stop) 2&amp;gt;&amp;amp;1 | /usr/bin/tee /dev/console&lt;BR /&gt;        ;;&lt;BR /&gt;   *)&lt;BR /&gt;      echo "usage: `/usr/bin/basename $0` {start|stop}"&lt;BR /&gt;        ;;&lt;BR /&gt;esac&lt;BR /&gt;&lt;BR /&gt;Has anyone seen this behavior before and is there a cure?&lt;BR /&gt;&lt;BR /&gt;Look for 'DJS' in the attached script to see where I tried to make it exit.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 19 Nov 2002 18:12:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/startup-script-hang/m-p/2848072#M92702</guid>
      <dc:creator>Don Spare</dc:creator>
      <dc:date>2002-11-19T18:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Startup script hang</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/startup-script-hang/m-p/2848073#M92703</link>
      <description>&lt;BR /&gt;Why are you piping the output to tee /dev/console ??&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Tue, 19 Nov 2002 18:24:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/startup-script-hang/m-p/2848073#M92703</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-11-19T18:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: Startup script hang</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/startup-script-hang/m-p/2848074#M92704</link>
      <description>The first thing that I would do is drop the /dev/console redirect through tee and then you might find it necessary to&lt;BR /&gt;drop the command int6o background. A well written daemon should 'daemonize' itself but the safe option is to add '&amp;amp;' to cause it to be run in the background.&lt;BR /&gt;&lt;BR /&gt;The other thing that can cause problems (and I didn't bother to look through this script) is that there may be some commands that expect stdin or stdout to be a tty device and the commands will hang if that is not the case.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 19 Nov 2002 18:29:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/startup-script-hang/m-p/2848074#M92704</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-11-19T18:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: Startup script hang</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/startup-script-hang/m-p/2848075#M92705</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;In addition to that already offered, you need to confine your exit values to 0,1 or 2 (and rarely, 3).  These return values signal specific actions to the startup/shutdown mechanism.  Messages should only be directed to stdout and stderr.  A good overview of the processs can still be found here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/hpux/onlinedocs/os/startup.pdf" target="_blank"&gt;http://docs.hp.com/hpux/onlinedocs/os/startup.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 19 Nov 2002 18:42:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/startup-script-hang/m-p/2848075#M92705</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-11-19T18:42:37Z</dc:date>
    </item>
  </channel>
</rss>

