<?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: scripts starting at boot time in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/scripts-starting-at-boot-time/m-p/2790362#M79520</link>
    <description>Yup, capital "S" in the start up, and no obvious error in the rc.log file (I already checked).&lt;BR /&gt;&lt;BR /&gt;Is there some special way needed to launch my script other than with "&amp;amp;".&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 21 Aug 2002 01:27:15 GMT</pubDate>
    <dc:creator>Allan Pincus_1</dc:creator>
    <dc:date>2002-08-21T01:27:15Z</dc:date>
    <item>
      <title>scripts starting at boot time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripts-starting-at-boot-time/m-p/2790360#M79518</link>
      <description>I have created a script that starts an http daemon.  I set a shell variable HTTP=1 in my rc.config.d directory, I have my script to launch in the /sbin/init.d directory, I set up the start up link in /sbin/rc3.d and the kill link in /sbin/rc2.d.&lt;BR /&gt;&lt;BR /&gt;When I run the script manually, it runs fine.  I can stop and start my daemon at will, running the process in the background (with &amp;amp;).&lt;BR /&gt;&lt;BR /&gt;But when I reboot, it does not start.  Yes, I get the "start_mesg" and "stop_mesg" but my log file doesn't update, and when I grep out the process (httpd) it's not started.&lt;BR /&gt;&lt;BR /&gt;I'm going crazy!  Any one have any ideas?????&lt;BR /&gt;&lt;BR /&gt;- Allan</description>
      <pubDate>Wed, 21 Aug 2002 01:14:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripts-starting-at-boot-time/m-p/2790360#M79518</guid>
      <dc:creator>Allan Pincus_1</dc:creator>
      <dc:date>2002-08-21T01:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: scripts starting at boot time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripts-starting-at-boot-time/m-p/2790361#M79519</link>
      <description>Is your startup pointer under /sbin/rc3.d starts with the "S" character looking like "/sbin/rc3.d/S020apache" for example?&lt;BR /&gt;&lt;BR /&gt;Also, check /etc/rc.log to look for any output messages for your http startup script.  You can locate the relating lines within the file quicker by searching against your startup script name (S020apache for my example above).&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;Philip</description>
      <pubDate>Wed, 21 Aug 2002 01:24:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripts-starting-at-boot-time/m-p/2790361#M79519</guid>
      <dc:creator>Philip Chan_1</dc:creator>
      <dc:date>2002-08-21T01:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: scripts starting at boot time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripts-starting-at-boot-time/m-p/2790362#M79520</link>
      <description>Yup, capital "S" in the start up, and no obvious error in the rc.log file (I already checked).&lt;BR /&gt;&lt;BR /&gt;Is there some special way needed to launch my script other than with "&amp;amp;".&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Aug 2002 01:27:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripts-starting-at-boot-time/m-p/2790362#M79520</guid>
      <dc:creator>Allan Pincus_1</dc:creator>
      <dc:date>2002-08-21T01:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: scripts starting at boot time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripts-starting-at-boot-time/m-p/2790363#M79521</link>
      <description>Hi Allan,&lt;BR /&gt;&lt;BR /&gt;As you are getting the start and stop messages, I believe that the script is getting executed properly during the startup. I would suggest you to keep the debug line "set -x" at the beginning of the script and observe the output. Your console may clobber a bit but it will help you troubleshoot the problem.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Wed, 21 Aug 2002 01:32:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripts-starting-at-boot-time/m-p/2790363#M79521</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2002-08-21T01:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: scripts starting at boot time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripts-starting-at-boot-time/m-p/2790364#M79522</link>
      <description>Add debug options (simple echo commands to some output files) in the startup/shutdown scripts. Check the file permissions. Also check the shell used by the scripts.</description>
      <pubDate>Wed, 21 Aug 2002 01:39:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripts-starting-at-boot-time/m-p/2790364#M79522</guid>
      <dc:creator>Sajid_1</dc:creator>
      <dc:date>2002-08-21T01:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: scripts starting at boot time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripts-starting-at-boot-time/m-p/2790365#M79523</link>
      <description>Put this at the beginning of your script, reboot and check /etc/rc.log:&lt;BR /&gt;&lt;BR /&gt;exec 2&amp;gt;&amp;amp;1&lt;BR /&gt;set -x&lt;BR /&gt;&lt;BR /&gt;The "exec 2&amp;gt;&amp;amp;1" will cause all standard error output to go to where standard outpui is going, which is to /etc.rc.log.&lt;BR /&gt;&lt;BR /&gt;The "set -x" will log each executed command, so that when you see an err in (/etc/rc.log) you will know which command gave that error.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Aug 2002 08:31:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripts-starting-at-boot-time/m-p/2790365#M79523</guid>
      <dc:creator>Frank Slootweg</dc:creator>
      <dc:date>2002-08-21T08:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: scripts starting at boot time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripts-starting-at-boot-time/m-p/2790366#M79524</link>
      <description>Allan,&lt;BR /&gt;&lt;BR /&gt;Can you actually see the following lines for your process in /etc/rc.log?&lt;BR /&gt;&lt;BR /&gt;Starting &lt;YOUR_HTTP_SERVER&gt;&lt;BR /&gt;Output from "/sbin/rc3.d/Sxx&lt;YOUR_HTTP_SERVER&gt;"&lt;BR /&gt;&lt;BR /&gt;... ba-ba-ba ...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If these lines weren't there that mean they weren't even executed.&lt;BR /&gt;&lt;BR /&gt;What about run level, was it set to 3 in /etc/inittab?&lt;/YOUR_HTTP_SERVER&gt;&lt;/YOUR_HTTP_SERVER&gt;</description>
      <pubDate>Wed, 21 Aug 2002 10:51:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripts-starting-at-boot-time/m-p/2790366#M79524</guid>
      <dc:creator>Philip Chan_1</dc:creator>
      <dc:date>2002-08-21T10:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: scripts starting at boot time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripts-starting-at-boot-time/m-p/2790367#M79525</link>
      <description>Check the shell you are running the script in&lt;BR /&gt;&lt;BR /&gt;i.e. top line may need to be added or altered to be&lt;BR /&gt;&lt;BR /&gt;#!/sbin/sh or whatever shell you are running in (do an echo $SHELL) of the user that successfully runs the script, and then set that within the script.  &lt;BR /&gt;&lt;BR /&gt;good luck</description>
      <pubDate>Wed, 21 Aug 2002 11:46:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripts-starting-at-boot-time/m-p/2790367#M79525</guid>
      <dc:creator>Jim Butler</dc:creator>
      <dc:date>2002-08-21T11:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: scripts starting at boot time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripts-starting-at-boot-time/m-p/2790368#M79526</link>
      <description>All,&lt;BR /&gt;&lt;BR /&gt;I got it! &lt;BR /&gt;&lt;BR /&gt;Problem was this:&lt;BR /&gt;&lt;BR /&gt;1.  I needed to use "nohup" to launch my script.&lt;BR /&gt;&lt;BR /&gt;2.  I had to add /usr/bin to the PATH variable inside the script.  This path was not picked up yet where I launched the script, so the shell couldn't find "nohup". (I put my script right before CDE started in rc3.d.  So I was surprised by this.)&lt;BR /&gt;&lt;BR /&gt;Thanks for all your help!  It gave me clues.  I hope this helps someone else out there.&lt;BR /&gt;&lt;BR /&gt;- Allan&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Aug 2002 12:01:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripts-starting-at-boot-time/m-p/2790368#M79526</guid>
      <dc:creator>Allan Pincus</dc:creator>
      <dc:date>2002-08-21T12:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: scripts starting at boot time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripts-starting-at-boot-time/m-p/2790369#M79527</link>
      <description>Do you have/use two ITRC accounts with the same user name ("Allan Pincus") ?&lt;BR /&gt;&lt;BR /&gt;Your 02:27 AM GMT response correctly says "[ N/A: Question Author ]", but your 13:01 PM GMT response says "[ unassigned ]" which implies that you are not the Question Author, but obviously you are.&lt;BR /&gt;&lt;BR /&gt;One account is of ("ITRC member since:")  August 21, 2002, the other is of August 05, 2002. &lt;BR /&gt;&lt;BR /&gt;I advise to delete one of these accounts because two accounts with the same user name is confusing.&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Aug 2002 12:38:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripts-starting-at-boot-time/m-p/2790369#M79527</guid>
      <dc:creator>Frank Slootweg</dc:creator>
      <dc:date>2002-08-21T12:38:30Z</dc:date>
    </item>
  </channel>
</rss>

