<?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: Shutdown Scripts in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-scripts/m-p/4300984#M338079</link>
    <description>Some HPUX servers (like the K series, for example) took a notoriously long time to reboot, and most of that time was spent in diagnostics, before the rc scripts were even begun executing.  You might want to take a further look at just where your delay is occurring.  If it is in the rc script execution, try to narrow it down to the one(s) that seem to take the longest, then take a closer look at those to see if there might be something that could be optimized.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
    <pubDate>Wed, 05 Nov 2008 15:52:26 GMT</pubDate>
    <dc:creator>Pete Randall</dc:creator>
    <dc:date>2008-11-05T15:52:26Z</dc:date>
    <item>
      <title>Shutdown Scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-scripts/m-p/4300978#M338073</link>
      <description>From the following thread I noticed that startup scripts should be in rc3.d and shutdown scripts in rc0.d:&lt;BR /&gt;&lt;A href="http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1078076" target="_blank"&gt;http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1078076&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Is the above right?&lt;BR /&gt;&lt;BR /&gt;The reason I am asking is, I put my shutdown scripts under rc2.d and probably that is the reason that server is taking forever to reboot. So I did rs to come the server fast, even though that is not the gentle way to reboot, this is just a test node and no database is there.&lt;BR /&gt;&lt;BR /&gt;Please throw some light....</description>
      <pubDate>Wed, 05 Nov 2008 15:17:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-scripts/m-p/4300978#M338073</guid>
      <dc:creator>Qcheck</dc:creator>
      <dc:date>2008-11-05T15:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: Shutdown Scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-scripts/m-p/4300979#M338074</link>
      <description>&amp;gt;&amp;gt;The reason I am asking is, I put my shutdown scripts under rc2.d&amp;lt;&amp;lt;&lt;BR /&gt;&lt;BR /&gt;The basics:&lt;BR /&gt;&lt;BR /&gt;The systems boots into multi-user level. The script files should be located in /sbin/init.d and a symbolic link with the name:&lt;BR /&gt;&lt;BR /&gt;/sbin/rc3.d:&lt;BR /&gt;SNNservice_name To start the service&lt;BR /&gt;&lt;BR /&gt;/sbin/rc0.d&lt;BR /&gt;KNNservice_name To stop the service&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Johnson&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Nov 2008 15:28:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-scripts/m-p/4300979#M338074</guid>
      <dc:creator>Johnson Punniyalingam</dc:creator>
      <dc:date>2008-11-05T15:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: Shutdown Scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-scripts/m-p/4300980#M338075</link>
      <description>Pratibha,&lt;BR /&gt;&lt;BR /&gt;There's nothing wrong with linking your shutdown scripts in the rc2.d directory. This is associated with run level 2, which is still at a multi-user level, but if you want your apps to be down at that run level, it's your call.&lt;BR /&gt;&lt;BR /&gt;As for taking so long to reboot, check the /etc/rc.log to see what is being shutdown and how long it's taking. Could be the shutdown script that's causing the problem, not the run level it runs in.&lt;BR /&gt;&lt;BR /&gt;robert</description>
      <pubDate>Wed, 05 Nov 2008 15:32:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-scripts/m-p/4300980#M338075</guid>
      <dc:creator>Robert Salter</dc:creator>
      <dc:date>2008-11-05T15:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: Shutdown Scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-scripts/m-p/4300981#M338076</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;The manpages for 'rc(1M)' tell you everything you need to know:&lt;BR /&gt;&lt;BR /&gt;"If a start script link (e.g., /sbin/rcN.d/S123test) in sequencer N has a stop action, the corresponding kill script should be placed in sequencer N-1 (e.g., /sbin/rcN-1.d/K200test).  Actions started in level N should be stopped in level N-1.  This way, a system shutdown (e.g., transition from level 3 directly to level 0) will result in all subsystems being stopped."&lt;BR /&gt;&lt;BR /&gt;If you have a startup script in level-3 with its shutdown component linked at level-0 the process will still work; it just isn't consistent with the standard.&lt;BR /&gt;&lt;BR /&gt;If you do a 'reboot' the normal shutdown scripts are *not* executed.  The 'reboot' command is actually the last step of 'shutdown', so of course, an ungraceful down is faster than a graceful one!&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Nov 2008 15:32:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-scripts/m-p/4300981#M338076</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-11-05T15:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: Shutdown Scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-scripts/m-p/4300982#M338077</link>
      <description>Or even you startup script could be the culprit. Check the /etc/rc.log.&lt;BR /&gt;&lt;BR /&gt;Forgot to add this on the first reply, sorry.&lt;BR /&gt;&lt;BR /&gt;robert</description>
      <pubDate>Wed, 05 Nov 2008 15:35:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-scripts/m-p/4300982#M338077</guid>
      <dc:creator>Robert Salter</dc:creator>
      <dc:date>2008-11-05T15:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: Shutdown Scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-scripts/m-p/4300983#M338078</link>
      <description>James, I use # shutdown -r now to reboot the server. And Robert, I will check the scripts too.&lt;BR /&gt;&lt;BR /&gt;Yeah, for some reason all our HPUX servers takes so long to reboot(atleast 15 min), that is the reason I started to research, as I rebooted one server today.</description>
      <pubDate>Wed, 05 Nov 2008 15:36:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-scripts/m-p/4300983#M338078</guid>
      <dc:creator>Qcheck</dc:creator>
      <dc:date>2008-11-05T15:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: Shutdown Scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-scripts/m-p/4300984#M338079</link>
      <description>Some HPUX servers (like the K series, for example) took a notoriously long time to reboot, and most of that time was spent in diagnostics, before the rc scripts were even begun executing.  You might want to take a further look at just where your delay is occurring.  If it is in the rc script execution, try to narrow it down to the one(s) that seem to take the longest, then take a closer look at those to see if there might be something that could be optimized.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Wed, 05 Nov 2008 15:52:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-scripts/m-p/4300984#M338079</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2008-11-05T15:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: Shutdown Scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-scripts/m-p/4300985#M338080</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;&amp;gt; use # shutdown -r now to reboot the server&lt;BR /&gt;&lt;BR /&gt;The 'now' argument only means don't wait before beginning to execute the shutdown sequence.  This doesn't mean don't execute the kill scripts!&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 05 Nov 2008 16:02:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-scripts/m-p/4300985#M338080</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-11-05T16:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: Shutdown Scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-scripts/m-p/4300986#M338081</link>
      <description>I can see the startup logs in /etc/rc.log and /etc/rc.log.old but where can I see the errors logged during the shutdown. I mean, I want to find the errors logged from the shutdown scripts but not the startup scripts.</description>
      <pubDate>Wed, 05 Nov 2008 17:21:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-scripts/m-p/4300986#M338081</guid>
      <dc:creator>Qcheck</dc:creator>
      <dc:date>2008-11-05T17:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: Shutdown Scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-scripts/m-p/4300987#M338082</link>
      <description>The errors for shutdown should be logged in /etc/rc.log.old.&lt;BR /&gt;&lt;BR /&gt;Look towards the end of the file and you should see a lot of information about /sbin/rc?.d/K* scripts being run.</description>
      <pubDate>Wed, 05 Nov 2008 17:30:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-scripts/m-p/4300987#M338082</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2008-11-05T17:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: Shutdown Scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-scripts/m-p/4300988#M338083</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; I want to find the errors logged from the shutdown scripts but not the startup scripts.&lt;BR /&gt;&lt;BR /&gt;# Look at '/etc/rc.log.old' for your last shutdown messages.&lt;BR /&gt;&lt;BR /&gt;That said, why do you think you have errors during the running of shutdown scripts?&lt;BR /&gt;&lt;BR /&gt;A server taking "fowever" to reboot could point to long startup or long shutdown.&lt;BR /&gt;&lt;BR /&gt;Do you have an Oracle database, perhaps, where the database is asked to shutdown but has to wait for all updates to complete?  Watching the events on the *console* will probably tell you much more than the 'rc' logs.  The console checklist gives you a better measure of which step(s) require the most time to complete.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 05 Nov 2008 17:56:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-scripts/m-p/4300988#M338083</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-11-05T17:56:57Z</dc:date>
    </item>
  </channel>
</rss>

