<?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: Adding a program to run during Boot time in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-a-program-to-run-during-boot-time/m-p/2483740#M18528</link>
    <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Check the /etc/rc.log for any information about your script.  Make sure that your script uses the Posix shell and declares its intention with "#!/sbin/sh" and not "#!/usr/..." although /usr should be mounted by this point.  Make sure that /etc/inittab has your default runlevel set to '3' -- the first line should be "init:3:initdefault:".  You should also have a link in /sbin/rc2.d for a kill.&lt;BR /&gt;&lt;BR /&gt;An excellent white paper fully describing all requirements is the "HP-UX 10.x Startup and Configuration (HP-UX 10.x)" found in PDF format at:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/hpux/os/10.x/index.html" target="_blank"&gt;http://docs.hp.com/hpux/os/10.x/index.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
    <pubDate>Wed, 17 Jan 2001 16:54:37 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2001-01-17T16:54:37Z</dc:date>
    <item>
      <title>Adding a program to run during Boot time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-a-program-to-run-during-boot-time/m-p/2483739#M18527</link>
      <description>I have a Script which I want to run during Startup.&lt;BR /&gt;I had copied the Script in /sbin/init.d and also created a link in /sbin/rc3.d using ln -s command.&lt;BR /&gt;But it does not run.&lt;BR /&gt;Do I have to go through any other steps do that the script runs duting the bootup.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Jan 2001 16:38:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-a-program-to-run-during-boot-time/m-p/2483739#M18527</guid>
      <dc:creator>Aggy</dc:creator>
      <dc:date>2001-01-17T16:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a program to run during Boot time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-a-program-to-run-during-boot-time/m-p/2483740#M18528</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Check the /etc/rc.log for any information about your script.  Make sure that your script uses the Posix shell and declares its intention with "#!/sbin/sh" and not "#!/usr/..." although /usr should be mounted by this point.  Make sure that /etc/inittab has your default runlevel set to '3' -- the first line should be "init:3:initdefault:".  You should also have a link in /sbin/rc2.d for a kill.&lt;BR /&gt;&lt;BR /&gt;An excellent white paper fully describing all requirements is the "HP-UX 10.x Startup and Configuration (HP-UX 10.x)" found in PDF format at:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/hpux/os/10.x/index.html" target="_blank"&gt;http://docs.hp.com/hpux/os/10.x/index.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Jan 2001 16:54:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-a-program-to-run-during-boot-time/m-p/2483740#M18528</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-01-17T16:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a program to run during Boot time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-a-program-to-run-during-boot-time/m-p/2483741#M18529</link>
      <description>Thank U. James But my Script is fine and working in one system.When I try to copy it to other and then link it to rc2.d for kill and rc3.d for start, it does not run.And gives no output for S100mfg in rc2.d and K100mfg  in rc3.d in /etc/rc.log.&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Jan 2001 17:07:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-a-program-to-run-during-boot-time/m-p/2483741#M18529</guid>
      <dc:creator>Aggy</dc:creator>
      <dc:date>2001-01-17T17:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a program to run during Boot time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-a-program-to-run-during-boot-time/m-p/2483742#M18530</link>
      <description>Do you have an entry in /etc/rc.config.d to tell the rc utiliities to run it or skip it?&lt;BR /&gt;&lt;BR /&gt;This directory is checked and all the files read in to set up variables that are then acted upon, indicating in the simplest instance whether to skip or start a particulasr rc script.&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Jan 2001 17:10:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-a-program-to-run-during-boot-time/m-p/2483742#M18530</guid>
      <dc:creator>melvyn burnard</dc:creator>
      <dc:date>2001-01-17T17:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a program to run during Boot time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-a-program-to-run-during-boot-time/m-p/2483743#M18531</link>
      <description>Did you tried it running manually from the command prompt to see if it gives any errors. may be some environment variables which it expects are not available at boot time.</description>
      <pubDate>Wed, 17 Jan 2001 19:35:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-a-program-to-run-during-boot-time/m-p/2483743#M18531</guid>
      <dc:creator>Jitendra_1</dc:creator>
      <dc:date>2001-01-17T19:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a program to run during Boot time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-a-program-to-run-during-boot-time/m-p/2483744#M18532</link>
      <description>Another thing to look at is does your script use a case to process how it is called?&lt;BR /&gt;I.E.&lt;BR /&gt;case $1 in&lt;BR /&gt;  start)&lt;BR /&gt;  ;;&lt;BR /&gt;  stop)&lt;BR /&gt;  ;;&lt;BR /&gt;esac&lt;BR /&gt;&lt;BR /&gt;I usually add the "start_msg" and "stop_msg" as well to the boot scripts so that I can see if they are starting....&lt;BR /&gt;&lt;BR /&gt;Another smaller point is does the link number overlap with another?&lt;BR /&gt;&amp;gt; ls /sbin/rc3.d&lt;BR /&gt;S990dtlogin.rc S990myscript.rc&lt;BR /&gt;&lt;BR /&gt;I have seen where one of these scripts do not start up because of this.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Shannon</description>
      <pubDate>Thu, 18 Jan 2001 16:16:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-a-program-to-run-during-boot-time/m-p/2483744#M18532</guid>
      <dc:creator>Shannon Petry</dc:creator>
      <dc:date>2001-01-18T16:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a program to run during Boot time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-a-program-to-run-during-boot-time/m-p/2483745#M18533</link>
      <description>I have been dealing with something similar as well.&lt;BR /&gt;You can put echo statements in the script as a troubleshooting tool. Also, check on the the return status (echo "$?"). Try to place the set -x in the beginning of the script as well so you can follow its steps. Redirect all to a log file somewhere where you can view the outputs. &lt;BR /&gt;&lt;BR /&gt;These are only aids to help find the culprit. I would also check the documents concerning the start/stop boot process as well.</description>
      <pubDate>Thu, 18 Jan 2001 16:35:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-a-program-to-run-during-boot-time/m-p/2483745#M18533</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2001-01-18T16:35:08Z</dc:date>
    </item>
  </channel>
</rss>

