<?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 Ideas to put a script as Startup. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ideas-to-put-a-script-as-startup/m-p/2826430#M87719</link>
    <description>Team:&lt;BR /&gt; &lt;BR /&gt; I need to put a script which is in /opt/socket.sh (a socket program) in the startup so that it would run all the time. My questions would be..&lt;BR /&gt;1. What number i should assign th SXXX for the socket.sh.&lt;BR /&gt;2. how do i make sure that it runs all the time after it started.&lt;BR /&gt;Please help. Env. 11.0&lt;BR /&gt;Thanks&lt;BR /&gt;Joe.</description>
    <pubDate>Tue, 15 Oct 2002 18:46:15 GMT</pubDate>
    <dc:creator>joe_91</dc:creator>
    <dc:date>2002-10-15T18:46:15Z</dc:date>
    <item>
      <title>Ideas to put a script as Startup.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ideas-to-put-a-script-as-startup/m-p/2826430#M87719</link>
      <description>Team:&lt;BR /&gt; &lt;BR /&gt; I need to put a script which is in /opt/socket.sh (a socket program) in the startup so that it would run all the time. My questions would be..&lt;BR /&gt;1. What number i should assign th SXXX for the socket.sh.&lt;BR /&gt;2. how do i make sure that it runs all the time after it started.&lt;BR /&gt;Please help. Env. 11.0&lt;BR /&gt;Thanks&lt;BR /&gt;Joe.</description>
      <pubDate>Tue, 15 Oct 2002 18:46:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ideas-to-put-a-script-as-startup/m-p/2826430#M87719</guid>
      <dc:creator>joe_91</dc:creator>
      <dc:date>2002-10-15T18:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: Ideas to put a script as Startup.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ideas-to-put-a-script-as-startup/m-p/2826431#M87720</link>
      <description>Team:&lt;BR /&gt;&lt;BR /&gt; Also should i have an associated K script? if so what would it do.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Joe.</description>
      <pubDate>Tue, 15 Oct 2002 18:50:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ideas-to-put-a-script-as-startup/m-p/2826431#M87720</guid>
      <dc:creator>joe_91</dc:creator>
      <dc:date>2002-10-15T18:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: Ideas to put a script as Startup.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ideas-to-put-a-script-as-startup/m-p/2826432#M87721</link>
      <description>The answer is of course that it depends. A fairly safe sequence would be after NFS starts since you are assured that the network is active at that point. I suggest that the startup be in run level 3 which implies that the shutdown be in run level 2.&lt;BR /&gt;&lt;BR /&gt;I would do something like create a script called /sbin/init.d/socketsh&lt;BR /&gt;and symbolically link it to /sbin/rc3.d/S101socketsh and /sbin/rc2.d/K899socketsh.&lt;BR /&gt;&lt;BR /&gt;Perhaps the easiest method to make certain that your program is running is to creatr a cronjob that runs every few minutes that does a ps -e to test for the existence of your daemon and restart it if necessary. You should probably add some code to this script to test whether you are at run-level 3 before looking for the process.&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Oct 2002 18:57:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ideas-to-put-a-script-as-startup/m-p/2826432#M87721</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-10-15T18:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Ideas to put a script as Startup.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ideas-to-put-a-script-as-startup/m-p/2826433#M87722</link>
      <description>Hi Joe&lt;BR /&gt;&lt;BR /&gt;There is a pretty good document in &lt;BR /&gt;&lt;BR /&gt;/usr/share/doc/filesys.txt&lt;BR /&gt;&lt;BR /&gt;Tha will explain your stop and start scripts config , with reference to run levels and sequencer directories etc&lt;BR /&gt;&lt;BR /&gt;As far as you S and K - they generally add up to a thousand. Depending on when you want the service to start you stick the link to the /sbin/init.d/script where you require&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Steve&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Oct 2002 19:01:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ideas-to-put-a-script-as-startup/m-p/2826433#M87722</guid>
      <dc:creator>steven Burgess_2</dc:creator>
      <dc:date>2002-10-15T19:01:52Z</dc:date>
    </item>
  </channel>
</rss>

