<?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 shutdown in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown/m-p/2440732#M7324</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;In HP-UX 10.20, &lt;BR /&gt;&lt;BR /&gt;I want to include on shutdown -r -y 0 script the followings:&lt;BR /&gt;&lt;BR /&gt;        &lt;BR /&gt;/usr/bin/su -u res -c "/stm/res/sh/ec_stop.sh res"&lt;BR /&gt;&lt;BR /&gt;/usr/bin/su -u oracle -c "/oracle/product/8.0.5/bin/dbshut"&lt;BR /&gt;&lt;BR /&gt;/usr/bin/su -u oracle -c "/oracle/product/8.0.5/bin/dbstart"&lt;BR /&gt;&lt;BR /&gt;/usr/bin/su -u res -c "/stm/res/sh/ec_start.sh res"&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Augusto &lt;BR /&gt;</description>
    <pubDate>Tue, 29 Aug 2000 09:58:39 GMT</pubDate>
    <dc:creator>augusto cossa</dc:creator>
    <dc:date>2000-08-29T09:58:39Z</dc:date>
    <item>
      <title>shutdown</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown/m-p/2440732#M7324</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;In HP-UX 10.20, &lt;BR /&gt;&lt;BR /&gt;I want to include on shutdown -r -y 0 script the followings:&lt;BR /&gt;&lt;BR /&gt;        &lt;BR /&gt;/usr/bin/su -u res -c "/stm/res/sh/ec_stop.sh res"&lt;BR /&gt;&lt;BR /&gt;/usr/bin/su -u oracle -c "/oracle/product/8.0.5/bin/dbshut"&lt;BR /&gt;&lt;BR /&gt;/usr/bin/su -u oracle -c "/oracle/product/8.0.5/bin/dbstart"&lt;BR /&gt;&lt;BR /&gt;/usr/bin/su -u res -c "/stm/res/sh/ec_start.sh res"&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Augusto &lt;BR /&gt;</description>
      <pubDate>Tue, 29 Aug 2000 09:58:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutdown/m-p/2440732#M7324</guid>
      <dc:creator>augusto cossa</dc:creator>
      <dc:date>2000-08-29T09:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: shutdown</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown/m-p/2440733#M7325</link>
      <description>Have a look at the files start_up.txt and sequence.txt in /usr/share/doc&lt;BR /&gt;&lt;BR /&gt;it will describe how to add/remove things to startup/shutdown.&lt;BR /&gt;&lt;BR /&gt;There is a template script in /sbin/init.d/template</description>
      <pubDate>Tue, 29 Aug 2000 10:03:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutdown/m-p/2440733#M7325</guid>
      <dc:creator>Andy Monks</dc:creator>
      <dc:date>2000-08-29T10:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: shutdown</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown/m-p/2440734#M7326</link>
      <description>&lt;BR /&gt;You really want 2 scripts in /sbin/init.d, one for oracle and one for res. Each one should look something like this;&lt;BR /&gt;&lt;BR /&gt;#!/sbin/sh&lt;BR /&gt;PATH=/sbin:/usr/sbin:/usr/bin&lt;BR /&gt;export PATH&lt;BR /&gt;&lt;BR /&gt;case $1 in&lt;BR /&gt;start_msg)&lt;BR /&gt;        echo "Start Oracle"&lt;BR /&gt;        ;;&lt;BR /&gt;stop_msg)&lt;BR /&gt;        echo "Stop Oracle"&lt;BR /&gt;        ;;&lt;BR /&gt;start)&lt;BR /&gt;       /usr/bin/su -u oracle -c "/oracle/product/8.0.5/bin/dbstart" &lt;BR /&gt;        ;;&lt;BR /&gt;stop)&lt;BR /&gt;       /usr/bin/su -u oracle -c "/oracle/product/8.0.5/bin/dbshut"&lt;BR /&gt;        ;;&lt;BR /&gt;*)&lt;BR /&gt;        echo "Usage: $0 start|stop" &amp;gt;&amp;amp;2&lt;BR /&gt;        exit 1&lt;BR /&gt;        ;;&lt;BR /&gt;esac&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;And modify the necessary bits above for the res script. Now, to start/stop oracle/res do /sbin/init.d/&amp;lt;script&amp;gt; start    or stop. To hook them into the startup/shutdown you need to add a symbolic link in /etc/rc&lt;RUNLEVEL&gt;.d depending on which runlevel you want them to start stop. Oracle should be in rc3.d to start and rc2.d to stop, same for res. This symbolic link points to /sbin/init.d/&amp;lt;script&amp;gt; and will be run when the system boots/shutsdown. The Links start with Kxxx for shutdown and Sxxx for startup. You will see lots of other links in these directories, set yours up the same.&lt;BR /&gt;&lt;/RUNLEVEL&gt;</description>
      <pubDate>Tue, 29 Aug 2000 10:20:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutdown/m-p/2440734#M7326</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2000-08-29T10:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: shutdown</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown/m-p/2440735#M7327</link>
      <description>The Snnn and Knnn soft link names are significant in that the scripts are run in numerical order of nnn so you might want to have say S900oracle/S901res so that oracle will start first and K99res/K100oracle so that res closes before oracle.</description>
      <pubDate>Tue, 29 Aug 2000 10:30:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutdown/m-p/2440735#M7327</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2000-08-29T10:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: shutdown</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown/m-p/2440736#M7328</link>
      <description>Hi Augusto,&lt;BR /&gt;&lt;BR /&gt;See the solution to your question from this previous thread  through this link: &lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x5195c3d7fb78d4118fef0090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x5195c3d7fb78d4118fef0090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 29 Aug 2000 10:52:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutdown/m-p/2440736#M7328</guid>
      <dc:creator>CHRIS_ANORUO</dc:creator>
      <dc:date>2000-08-29T10:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: shutdown</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown/m-p/2440737#M7329</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;An excellent whitepaper on the architecture of startup &amp;amp; shutdown, in general, can be downloaded from:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/hpux/content/startup.pdf" target="_blank"&gt;http://docs.hp.com/hpux/content/startup.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;This will describe the proper way of setting up startup and shutdown of tasks in a prescribed order.  Since the standard system processes are done here, you will see how and where to interleave your own (see the comments in Stefan's post, above, in particular.&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 29 Aug 2000 10:58:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutdown/m-p/2440737#M7329</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2000-08-29T10:58:14Z</dc:date>
    </item>
  </channel>
</rss>

