<?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: Unix system Startup &amp;amp; Kill run level scripts in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-system-startup-amp-kill-run-level-scripts/m-p/3194553#M165372</link>
    <description>Phani,&lt;BR /&gt;&lt;BR /&gt;To answer your question about the difference between startup and kill scripts:  there is no difference.  If you look closely, you will see that they are merely links to a /sbin/init.d/ script.  During startup, all the rc?.d directories are parsed and all the S* scripts invoke their corresponding /sbin/init.d script with a "start" argument.  During shutdown, the reverse is true.  All the K* scripts invoke the corresponding /sbin/init.d script with a "stop" argument.  Any difference comes from the way the /sbin/init.d script handles the two arguments.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
    <pubDate>Tue, 17 Feb 2004 14:41:08 GMT</pubDate>
    <dc:creator>Pete Randall</dc:creator>
    <dc:date>2004-02-17T14:41:08Z</dc:date>
    <item>
      <title>Unix system Startup &amp; Kill run level scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-system-startup-amp-kill-run-level-scripts/m-p/3194549#M165368</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt; In one of my HP-UX server, i observed that there are some Killing scripts missing for Starting scripts...Is this abnormal ?&lt;BR /&gt;&lt;BR /&gt; Apart from the Startup &amp;amp; Kill naming convention (for ex: S &amp;amp; K ), is there will be any difference between Startup script &amp;amp; Kill script ( the shell script inside the file ) ?&lt;BR /&gt;&lt;BR /&gt; Please give me some valuable info on this.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Phani</description>
      <pubDate>Tue, 17 Feb 2004 14:30:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-system-startup-amp-kill-run-level-scripts/m-p/3194549#M165368</guid>
      <dc:creator>Phani_4</dc:creator>
      <dc:date>2004-02-17T14:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: Unix system Startup &amp; Kill run level scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-system-startup-amp-kill-run-level-scripts/m-p/3194550#M165369</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;this happens, I usually rename or remove starup scripts for services not required as part of the hardening process. S and K are naming conventions what is is in the script will happen regardless of the name and of course it only happens when the script is called by the correct name.&lt;BR /&gt;&lt;BR /&gt;:-) john.&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Feb 2004 14:36:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-system-startup-amp-kill-run-level-scripts/m-p/3194550#M165369</guid>
      <dc:creator>John Carr_2</dc:creator>
      <dc:date>2004-02-17T14:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: Unix system Startup &amp; Kill run level scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-system-startup-amp-kill-run-level-scripts/m-p/3194551#M165370</link>
      <description>Actually the start and kill scripts are one and the same.  If you look at the S* and K* files, you will notice that they are links to scripts in /sbin/init.d, at least about 99% of the time.  The scripts in /sbin/init.d are the real workhorses.  There are sections in those scripts that control the startup and shutdown of the various products and services.&lt;BR /&gt;&lt;BR /&gt;Open up one of the scripts and take a look at it and  you'll see what I mean.  &lt;BR /&gt;&lt;BR /&gt;When HP-UX starts up, or shuts down / reboots, the init command parses through the scripts in each /sbin/rc?.d run level directory.  If it is starting up each script gets executed with a 'start' as the parameter for the script (/sbin/rc2.d/S500inetd start to start the inetd daemon).  When the system is shuttind down, the same script gets called, except there is a 'stop' argument (/sbin/rc1.d/K500inetd stop to stop the inetd daemon).&lt;BR /&gt;&lt;BR /&gt;Now it is possible for some third party products, or home grown applications, that you may have a start script and not a kill script.  If you don't care the the process for an application just gets killed when the machine shuts down, then you may not have put one in.  It is not adviseable, but is possible.  I generally like to keep the S and K scripts in sync as it makes things easier to manage.</description>
      <pubDate>Tue, 17 Feb 2004 14:38:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-system-startup-amp-kill-run-level-scripts/m-p/3194551#M165370</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2004-02-17T14:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: Unix system Startup &amp; Kill run level scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-system-startup-amp-kill-run-level-scripts/m-p/3194552#M165371</link>
      <description>In MOST cases if there is a start script for run-level N then there should be a kill script executed upon transition to run-level N-1 but certainly not all. For example, it is common to remove temporary files of startup but to do nothing on shutdown. One often sees license daemons started but simply allowed to die on shutdown.&lt;BR /&gt;&lt;BR /&gt;The convention (and its nothing more than that) is that id the startup script is named SnnnXXX and the kill script is named KNNNXXX then nnn + NNN should equal 1000. This tends to correctly order the startup and shutdown. Also both the startup and kill scripts should be symbolic links to the actual script in /sbin/init.d. &lt;BR /&gt;&lt;BR /&gt;The same script is almost always used for both startup and kill and the difference in behavior is controlled inside a case statement depneding upon whether a 'stop', 'start', 'start_msg', or 'stop_msg' argument was supplied to the script.&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Feb 2004 14:39:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-system-startup-amp-kill-run-level-scripts/m-p/3194552#M165371</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2004-02-17T14:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Unix system Startup &amp; Kill run level scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-system-startup-amp-kill-run-level-scripts/m-p/3194553#M165372</link>
      <description>Phani,&lt;BR /&gt;&lt;BR /&gt;To answer your question about the difference between startup and kill scripts:  there is no difference.  If you look closely, you will see that they are merely links to a /sbin/init.d/ script.  During startup, all the rc?.d directories are parsed and all the S* scripts invoke their corresponding /sbin/init.d script with a "start" argument.  During shutdown, the reverse is true.  All the K* scripts invoke the corresponding /sbin/init.d script with a "stop" argument.  Any difference comes from the way the /sbin/init.d script handles the two arguments.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Tue, 17 Feb 2004 14:41:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-system-startup-amp-kill-run-level-scripts/m-p/3194553#M165372</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2004-02-17T14:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: Unix system Startup &amp; Kill run level scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-system-startup-amp-kill-run-level-scripts/m-p/3194554#M165373</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;Great explaination..Very much clear :)&lt;BR /&gt;Thanks alot for your information.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Regards,&lt;BR /&gt;Phani</description>
      <pubDate>Tue, 17 Feb 2004 14:51:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-system-startup-amp-kill-run-level-scripts/m-p/3194554#M165373</guid>
      <dc:creator>Phani_4</dc:creator>
      <dc:date>2004-02-17T14:51:33Z</dc:date>
    </item>
  </channel>
</rss>

