<?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 customized startup scripts in /sbin/init.d in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/customized-startup-scripts-in-sbin-init-d/m-p/2762210#M72710</link>
    <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I'm trying to add a customized startup script in the /sbin/init.d directory to start our application(broadvision) automatically at boot time. I'm creating the start link at rc3.d and kill link at rc2.d&lt;BR /&gt;&lt;BR /&gt;I run the script in command line, it works fine, but the problem is, when it invoked at bootup time, some background process cannot be started, . my question is, is there any difference between runing a script from init at boot time and from normal shell command line?&lt;BR /&gt;&lt;BR /&gt;thanks,&lt;BR /&gt;Gary</description>
    <pubDate>Thu, 11 Jul 2002 18:14:01 GMT</pubDate>
    <dc:creator>Gary Yu</dc:creator>
    <dc:date>2002-07-11T18:14:01Z</dc:date>
    <item>
      <title>customized startup scripts in /sbin/init.d</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/customized-startup-scripts-in-sbin-init-d/m-p/2762210#M72710</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I'm trying to add a customized startup script in the /sbin/init.d directory to start our application(broadvision) automatically at boot time. I'm creating the start link at rc3.d and kill link at rc2.d&lt;BR /&gt;&lt;BR /&gt;I run the script in command line, it works fine, but the problem is, when it invoked at bootup time, some background process cannot be started, . my question is, is there any difference between runing a script from init at boot time and from normal shell command line?&lt;BR /&gt;&lt;BR /&gt;thanks,&lt;BR /&gt;Gary</description>
      <pubDate>Thu, 11 Jul 2002 18:14:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/customized-startup-scripts-in-sbin-init-d/m-p/2762210#M72710</guid>
      <dc:creator>Gary Yu</dc:creator>
      <dc:date>2002-07-11T18:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: customized startup scripts in /sbin/init.d</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/customized-startup-scripts-in-sbin-init-d/m-p/2762211#M72711</link>
      <description>In the /sbin/init.d/&amp;lt;script&amp;gt; , Be sure to either set the PATH variable or use fully qualified path names for all commands.</description>
      <pubDate>Thu, 11 Jul 2002 18:16:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/customized-startup-scripts-in-sbin-init-d/m-p/2762211#M72711</guid>
      <dc:creator>Rich Wright</dc:creator>
      <dc:date>2002-07-11T18:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: customized startup scripts in /sbin/init.d</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/customized-startup-scripts-in-sbin-init-d/m-p/2762212#M72712</link>
      <description>Hi Gary:&lt;BR /&gt;&lt;BR /&gt;Yes, the environmental variables are probably quite different.  Remember, any variables sourced and exported by your profile during login are absent.  Make sure that your 'rc' script has at least a PATH variable set and that you declare any other environment you need.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 11 Jul 2002 18:18:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/customized-startup-scripts-in-sbin-init-d/m-p/2762212#M72712</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-07-11T18:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: customized startup scripts in /sbin/init.d</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/customized-startup-scripts-in-sbin-init-d/m-p/2762213#M72713</link>
      <description>Hi&lt;BR /&gt;One difference is enviroment variables such as PATH is set in your login session but not automatic at booting. Check your script which variables needs to be set (and dont forget to export).</description>
      <pubDate>Thu, 11 Jul 2002 18:19:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/customized-startup-scripts-in-sbin-init-d/m-p/2762213#M72713</guid>
      <dc:creator>Leif Halvarsson_2</dc:creator>
      <dc:date>2002-07-11T18:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: customized startup scripts in /sbin/init.d</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/customized-startup-scripts-in-sbin-init-d/m-p/2762214#M72714</link>
      <description>Make sure your script defines the necessary PATH and environment variables. The script should be as self-contained as possible.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;Marty</description>
      <pubDate>Thu, 11 Jul 2002 18:19:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/customized-startup-scripts-in-sbin-init-d/m-p/2762214#M72714</guid>
      <dc:creator>Martin Johnson</dc:creator>
      <dc:date>2002-07-11T18:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: customized startup scripts in /sbin/init.d</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/customized-startup-scripts-in-sbin-init-d/m-p/2762215#M72715</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Go thro this link.....&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/hpux/onlinedocs/os/startup.pdf" target="_blank"&gt;http://docs.hp.com/hpux/onlinedocs/os/startup.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Have you created something in the /etc/rc.config.d also ???&lt;BR /&gt;&lt;BR /&gt;Also post your scripts and check whether the PATH is correct. Put the full path of the command like /usr/bin/ls instead of just ls&lt;BR /&gt;&lt;BR /&gt;Piyush&lt;BR /&gt;&lt;BR /&gt;Piyush</description>
      <pubDate>Thu, 11 Jul 2002 18:23:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/customized-startup-scripts-in-sbin-init-d/m-p/2762215#M72715</guid>
      <dc:creator>PIYUSH D. PATEL</dc:creator>
      <dc:date>2002-07-11T18:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: customized startup scripts in /sbin/init.d</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/customized-startup-scripts-in-sbin-init-d/m-p/2762216#M72716</link>
      <description>Hi Gary,&lt;BR /&gt;&lt;BR /&gt; As Rich has noted you have a very sparse environment because there's no login - you must explicilty setup any env parms OR use su - username - c "command string"  commands.&lt;BR /&gt;&lt;BR /&gt;Also exactly *how* you name the links in rc3.d/rc2.d can play a part. If you name them LOWER than another script that this script is dependent on - you've got a problem. So when in doubt, name it high enough so that you know everything else you might need is already running.&lt;BR /&gt;&lt;BR /&gt;And you probably know but the Sxxxfilename &amp;amp; Kxxxfilename numbers in rc3.d/rc2.d should equal 1000. NOT required, but good practice.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Jeff</description>
      <pubDate>Thu, 11 Jul 2002 18:25:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/customized-startup-scripts-in-sbin-init-d/m-p/2762216#M72716</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2002-07-11T18:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: customized startup scripts in /sbin/init.d</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/customized-startup-scripts-in-sbin-init-d/m-p/2762217#M72717</link>
      <description>thanks guys for the quick response. I'm using su - user_name -c "command" in the start scripts in /sbin/init.d, that should bring all environment variables in. from the output logged in /etc/rc.log, it seemed all process are started(there's one line output for each process started) but when I logged in and checkeed, some of them doesn't show up ...&lt;BR /&gt;&lt;BR /&gt;thanks,&lt;BR /&gt;Gary</description>
      <pubDate>Thu, 11 Jul 2002 18:37:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/customized-startup-scripts-in-sbin-init-d/m-p/2762217#M72717</guid>
      <dc:creator>Gary Yu</dc:creator>
      <dc:date>2002-07-11T18:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: customized startup scripts in /sbin/init.d</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/customized-startup-scripts-in-sbin-init-d/m-p/2762218#M72718</link>
      <description>&amp;gt; from the output logged in /etc/rc.log, it&lt;BR /&gt;&amp;gt; seemed all process are started(there's one&lt;BR /&gt;&amp;gt; line output for each process started) but&lt;BR /&gt;&amp;gt; when I logged in and checkeed, some of them&lt;BR /&gt;&amp;gt; doesn't show up ...&lt;BR /&gt;&lt;BR /&gt;If the processes are not designed as daemons, you have to start them with nohup(1) *and* allow for some time after each nohup command for nohup to do its work, i.e.&lt;BR /&gt;&lt;BR /&gt;nohup real_command &amp;amp;&lt;BR /&gt;sleep 1&lt;BR /&gt;&lt;BR /&gt;The sleep is really a hack, because you should really *check* if real_command has actually started.&lt;BR /&gt;&lt;BR /&gt;You will probably also need to redirect standard in or/and standard out or/and standard error.&lt;BR /&gt;Gary</description>
      <pubDate>Fri, 12 Jul 2002 11:35:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/customized-startup-scripts-in-sbin-init-d/m-p/2762218#M72718</guid>
      <dc:creator>Frank Slootweg</dc:creator>
      <dc:date>2002-07-12T11:35:02Z</dc:date>
    </item>
  </channel>
</rss>

