<?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: shutting down &amp;amp; restarting applications in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shutting-down-amp-restarting-applications/m-p/3494099#M215518</link>
    <description>Are you sure you're not allowed to use the rc scripts?  Perhaps what they meant to say is they don't want to have the shutdown of the server run the rc scripts?   When it comes right down to it these are just scripts.&lt;BR /&gt;&lt;BR /&gt;I suspect that management doesn't trust that there will be a proper shutdown of applications before the server.  If this is the problem you can just say your procedure is to do:&lt;BR /&gt;&lt;BR /&gt;1) /sbin/init.d/&lt;APPLICATION&gt; stop&lt;BR /&gt;2) ps -ef |grep &lt;APPLICATION process=""&gt; to verify its no longer running.&lt;BR /&gt;3) shutdown (-h 0 to halt or -r 0 to reboot)&lt;BR /&gt;&lt;BR /&gt;If that still isn't sufficient you can read the /sbin/init.d/&lt;APPLICATION&gt; script to determine what it is doing when it shuts down (look at the "stop" function within it) then simply detail these steps.&lt;BR /&gt;&lt;BR /&gt;You'll of course need to determine which script does the stop and what processes to look for to verify its not running.  Look at /etc/rc.log.old to see what it did during your last shutdown.&lt;/APPLICATION&gt;&lt;/APPLICATION&gt;&lt;/APPLICATION&gt;</description>
    <pubDate>Tue, 01 Mar 2005 08:28:25 GMT</pubDate>
    <dc:creator>Jeff Lightner_1</dc:creator>
    <dc:date>2005-03-01T08:28:25Z</dc:date>
    <item>
      <title>shutting down &amp; restarting applications</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutting-down-amp-restarting-applications/m-p/3494095#M215514</link>
      <description>my team is about to perform a memory upgrade on a server. I have been told to outline the steps to be taken. I have been told that the application must be stopped/shutdown before the system is shutdown &amp;amp; must be restarted afterwards. However this must not be done from the rc scripts. Can anybody tell me the correct procedure.</description>
      <pubDate>Mon, 28 Feb 2005 05:09:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutting-down-amp-restarting-applications/m-p/3494095#M215514</guid>
      <dc:creator>Ravinder Singh Gill</dc:creator>
      <dc:date>2005-02-28T05:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: shutting down &amp; restarting applications</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutting-down-amp-restarting-applications/m-p/3494096#M215515</link>
      <description>In /sbin/init.d you have all the start and stop script.&lt;BR /&gt;Most applications are started in run level 3 all the links are at:&lt;BR /&gt;/sbin/rc3.d&lt;BR /&gt;&lt;BR /&gt;some thing like this:&lt;BR /&gt;S823hpws_apache -&amp;gt; /sbin/init.d/hpws_apache&lt;BR /&gt;&lt;BR /&gt;say in this i would like to stop the appache application i would do this:&lt;BR /&gt;/sbin/init.d/hpws_apache stop&lt;BR /&gt;and to start it again:&lt;BR /&gt;/sbin/init.d/hpws_apache start&lt;BR /&gt;&lt;BR /&gt;normaly most applications started at rc3.d would be stoped at rc4.d:&lt;BR /&gt;/sbin/rc4.d and would look like this:&lt;BR /&gt;K823hpws_apache -&amp;gt; /sbin/init.d/hpws_apache&lt;BR /&gt;&lt;BR /&gt;S - for start&lt;BR /&gt;K - for kill&lt;BR /&gt;&lt;BR /&gt;Hope it helps!</description>
      <pubDate>Mon, 28 Feb 2005 05:27:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutting-down-amp-restarting-applications/m-p/3494096#M215515</guid>
      <dc:creator>Jannik</dc:creator>
      <dc:date>2005-02-28T05:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: shutting down &amp; restarting applications</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutting-down-amp-restarting-applications/m-p/3494097#M215516</link>
      <description>Hi Mr.Gill,&lt;BR /&gt;&lt;BR /&gt;Normally you need to only shutdown the database running.Assuming Oracle is your data base,the procedure could be the following.&lt;BR /&gt;&lt;BR /&gt;Before that ensure that the front end of your application is down. This procedure is different for different setups.&lt;BR /&gt;&lt;BR /&gt;Shutdown the listner before shutting down the database.See following.&lt;BR /&gt;=========================================================================&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;login as root.&lt;BR /&gt;&lt;BR /&gt;#su - oradb &amp;lt; equivalent oracle db user &amp;gt;&lt;BR /&gt;&lt;BR /&gt;[/home/oradb]$ ps -ef|grep tnslsnr&lt;BR /&gt; testing_db 16234     1  0  Feb 27  ?         1:36 /testing_db/app/oracle/product/9.2.0/bin/tnslsnr TESTING_DB -inherit&lt;BR /&gt;&lt;BR /&gt;[/home/oradb]$ /testing_db/app/oracle/product/9.2.0/bin/tnslsnr TESTING_DB stop&lt;BR /&gt;&lt;BR /&gt;This will stop the Oracle listener.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Shutting Down Database:-&lt;BR /&gt;===================================&lt;BR /&gt;&lt;BR /&gt;[/home/oradb]sqlplus /nolog&lt;BR /&gt;&lt;BR /&gt;SQL*Plus: Release 8.1.7.0.0 - Production on Mon Feb 28 15:58:25 2005&lt;BR /&gt;&lt;BR /&gt;(c) Copyright 2000 Oracle Corporation.  All rights reserved.&lt;BR /&gt;&lt;BR /&gt;SQL&amp;gt; connect /as sysdba&lt;BR /&gt;Connected.&lt;BR /&gt;SQL&amp;gt; shutdown immediate&lt;BR /&gt;&lt;BR /&gt;This will shutdown the database. Give some time to get the database down.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;SQL&amp;gt;exit&lt;BR /&gt;&lt;BR /&gt;After exting from sqlPlus come to root login.&lt;BR /&gt;&lt;BR /&gt;#ps -ef|grep pmon&lt;BR /&gt;#ps -ef|grep smon&lt;BR /&gt;&lt;BR /&gt;no related process should be running.&lt;BR /&gt;&lt;BR /&gt;If every thing OK shutdown the server&lt;BR /&gt;&lt;BR /&gt;#shutdown -h -y now&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Syam</description>
      <pubDate>Mon, 28 Feb 2005 05:43:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutting-down-amp-restarting-applications/m-p/3494097#M215516</guid>
      <dc:creator>Ranjith_5</dc:creator>
      <dc:date>2005-02-28T05:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: shutting down &amp; restarting applications</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutting-down-amp-restarting-applications/m-p/3494098#M215517</link>
      <description>Hi Mr.Gill,&lt;BR /&gt;&lt;BR /&gt;Speak to your DBA team before proceeding Please. They must have prepared a well defined procedure for your site on this.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Syam</description>
      <pubDate>Mon, 28 Feb 2005 05:45:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutting-down-amp-restarting-applications/m-p/3494098#M215517</guid>
      <dc:creator>Ranjith_5</dc:creator>
      <dc:date>2005-02-28T05:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: shutting down &amp; restarting applications</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutting-down-amp-restarting-applications/m-p/3494099#M215518</link>
      <description>Are you sure you're not allowed to use the rc scripts?  Perhaps what they meant to say is they don't want to have the shutdown of the server run the rc scripts?   When it comes right down to it these are just scripts.&lt;BR /&gt;&lt;BR /&gt;I suspect that management doesn't trust that there will be a proper shutdown of applications before the server.  If this is the problem you can just say your procedure is to do:&lt;BR /&gt;&lt;BR /&gt;1) /sbin/init.d/&lt;APPLICATION&gt; stop&lt;BR /&gt;2) ps -ef |grep &lt;APPLICATION process=""&gt; to verify its no longer running.&lt;BR /&gt;3) shutdown (-h 0 to halt or -r 0 to reboot)&lt;BR /&gt;&lt;BR /&gt;If that still isn't sufficient you can read the /sbin/init.d/&lt;APPLICATION&gt; script to determine what it is doing when it shuts down (look at the "stop" function within it) then simply detail these steps.&lt;BR /&gt;&lt;BR /&gt;You'll of course need to determine which script does the stop and what processes to look for to verify its not running.  Look at /etc/rc.log.old to see what it did during your last shutdown.&lt;/APPLICATION&gt;&lt;/APPLICATION&gt;&lt;/APPLICATION&gt;</description>
      <pubDate>Tue, 01 Mar 2005 08:28:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutting-down-amp-restarting-applications/m-p/3494099#M215518</guid>
      <dc:creator>Jeff Lightner_1</dc:creator>
      <dc:date>2005-03-01T08:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: shutting down &amp; restarting applications</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutting-down-amp-restarting-applications/m-p/3494100#M215519</link>
      <description>Mr. Gill,&lt;BR /&gt;&lt;BR /&gt;The only other way to start processes at boot time is with the /etc/inittab file.  This, however, is NOT recommended, as this file is for system processes only.  No logging to the /etc/rc.log file takes place when using inittab.  Also, there is no way to gracefully stop a process when using this method.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Mark</description>
      <pubDate>Tue, 01 Mar 2005 11:44:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutting-down-amp-restarting-applications/m-p/3494100#M215519</guid>
      <dc:creator>Mark Ellzey</dc:creator>
      <dc:date>2005-03-01T11:44:37Z</dc:date>
    </item>
  </channel>
</rss>

