<?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 run script when shutdown in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/run-script-when-shutdown/m-p/2819522#M86313</link>
    <description>How can the system automatically run the scripts such as shutdown db , logout users when the system is shutdown?&lt;BR /&gt;Thx.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Sat, 05 Oct 2002 03:27:47 GMT</pubDate>
    <dc:creator>O'lnes</dc:creator>
    <dc:date>2002-10-05T03:27:47Z</dc:date>
    <item>
      <title>run script when shutdown</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/run-script-when-shutdown/m-p/2819522#M86313</link>
      <description>How can the system automatically run the scripts such as shutdown db , logout users when the system is shutdown?&lt;BR /&gt;Thx.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 05 Oct 2002 03:27:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/run-script-when-shutdown/m-p/2819522#M86313</guid>
      <dc:creator>O'lnes</dc:creator>
      <dc:date>2002-10-05T03:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: run script when shutdown</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/run-script-when-shutdown/m-p/2819523#M86314</link>
      <description>&lt;BR /&gt; Hi,&lt;BR /&gt;Here's a partial answer:&lt;BR /&gt; 1- write your script in a case segment including start, stop, start commands&lt;BR /&gt;&lt;BR /&gt; 2- save the script in /sbin/rc.init.d/your_script&lt;BR /&gt;&lt;BR /&gt; 3- create a symbolic link to this file in /sbin/rcR.d/ where R is the appropriate run level during STARTUP. Name the link sarting with an S (start) like (S540) the numbers here are for the order execution during startup.&lt;BR /&gt;&lt;BR /&gt; 4- create another symbolic link for the file in /sbin/rcR.d/ where R is the appropriate run level during SHUTDOWN. &lt;BR /&gt;Name the link sarting with an K (Kill) like (K540) the numbers here are for the order execution during shutdown.&lt;BR /&gt;&lt;BR /&gt; 4- Create additional configuration parmeters if any in /sbin/rc.config.d/ with the same name in /sbin/init.d/&lt;BR /&gt;&lt;BR /&gt; Hope this works,,,,&lt;BR /&gt;&lt;BR /&gt;Good Luck.</description>
      <pubDate>Sat, 05 Oct 2002 03:55:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/run-script-when-shutdown/m-p/2819523#M86314</guid>
      <dc:creator>Khalid A. Al-Tayaran</dc:creator>
      <dc:date>2002-10-05T03:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: run script when shutdown</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/run-script-when-shutdown/m-p/2819524#M86315</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;As a general rule, you create the symbolic link for the stop case of your script one run level less than where you start it.  In other words, if you start a process at run level 3, you generally want to stop it at run level 2.&lt;BR /&gt;&lt;BR /&gt;For example:&lt;BR /&gt;create /sbin/init.d/myscript&lt;BR /&gt;ln -s /sbin/init.d/myscript /sbin/rc3.d/S100myscript&lt;BR /&gt;ln -s /sbin/init.d/myscript /sbin/rc2.d/K900myscript&lt;BR /&gt;&lt;BR /&gt;Darrell&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 05 Oct 2002 12:51:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/run-script-when-shutdown/m-p/2819524#M86315</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2002-10-05T12:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: run script when shutdown</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/run-script-when-shutdown/m-p/2819525#M86316</link>
      <description>&lt;BR /&gt;How about spending some time fixing this? it's just plain laziness and lack of RESPECT for your fellow system admins that irks me to no end!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This member has assigned points to 158 of 347 responses to his/her questions.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You can find ALL of your previous posts here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/TopSolutions/1,,CA759973!1!questions,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/TopSolutions/1,,CA759973!1!questions,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry&lt;BR /&gt;</description>
      <pubDate>Sat, 05 Oct 2002 13:33:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/run-script-when-shutdown/m-p/2819525#M86316</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-10-05T13:33:05Z</dc:date>
    </item>
  </channel>
</rss>

