<?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: rc scripts not starting while server reboots in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-scripts-not-starting-while-server-reboots/m-p/4760259#M389028</link>
    <description>What is the ownership (owner:group) and privileges of the script?</description>
    <pubDate>Wed, 02 Mar 2011 18:58:47 GMT</pubDate>
    <dc:creator>Jose Mosquera</dc:creator>
    <dc:date>2011-03-02T18:58:47Z</dc:date>
    <item>
      <title>rc scripts not starting while server reboots</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-scripts-not-starting-while-server-reboots/m-p/4760251#M389020</link>
      <description>Hi All,&lt;BR /&gt;iam facing an issue in my 11.11 box.&lt;BR /&gt;&lt;BR /&gt;There is a script in my "/sbin/rc3.d/S97sysload&lt;BR /&gt;&lt;BR /&gt;script is "S97sysload"  which is not getting started while server reboots.&lt;BR /&gt;But am able to start manually with out any issue.&lt;BR /&gt;&lt;BR /&gt;rc.log says as:&lt;BR /&gt;&lt;BR /&gt;root@d850vp01:.../rc3.d # cat /etc/rc.log |grep -i sysload&lt;BR /&gt;usage: /sbin/init.d/sysload {start|stop}&lt;BR /&gt;Output from "/sbin/rc3.d/S97sysload start":&lt;BR /&gt;Starting Sysload sldrmd...&lt;BR /&gt;/local/home/sysload/coll/conf/sldrmd[9]: dirname:  not found.&lt;BR /&gt;/local/home/sysload/coll/conf/sldrmd[35]: sed:  not found.&lt;BR /&gt;/local/home/sysload/coll/conf/sldrmd[39]: /coll/pgm/sldrm_coll:  not found.&lt;BR /&gt;/sbin/rc3.d/S97sysload[11]: sleep:  not found.&lt;BR /&gt;Starting Sysload sldfsd...&lt;BR /&gt;/local/home/sysload/coll/conf/sldfsd[9]: dirname:  not found.&lt;BR /&gt;/local/home/sysload/coll/conf/sldfsd[34]: sed:  not found.&lt;BR /&gt;/local/home/sysload/coll/conf/sldfsd[43]: /coll/pgm/sldfs_rreq:  not found.&lt;BR /&gt;root@d850vp01:.../rc3.d # uname -a&lt;BR /&gt;HP-UX d850vp01 B.11.11 U 9000/785 3942931648 unlimited-user license&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;see the starting of the script as manual:&lt;BR /&gt;&lt;BR /&gt;root@d850vp01:.../rc3.d # S97sysload  start&lt;BR /&gt;Starting Sysload sldrmd...&lt;BR /&gt;&lt;BR /&gt;23282&lt;BR /&gt;==&amp;gt; Agent Sysload-Unix v5.20 (Build 55) start on Wed Mar  2 13:47:08 2011&lt;BR /&gt;&lt;BR /&gt;Starting Sysload sldfsd...&lt;BR /&gt;root@d850vp01:.../rc3.d #&lt;BR /&gt;23289&lt;BR /&gt;&lt;BR /&gt;==&amp;gt; Sysload File Server v5.20 (Build 17) start on Wed Mar  2 13:47:18 2011&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;root@d850vp01:.../rc3.d #&lt;BR /&gt;root@d850vp01:.../rc3.d # ps -ef | grep -i sysload&lt;BR /&gt;    root 23300  5010  0 13:47:35 pts/8     0:00 grep -i sysload&lt;BR /&gt;    root 23289     1  0 13:47:18 pts/8     0:00 /local/home/sysload/coll/pgm/sldfs_rreq start&lt;BR /&gt;    root 23282     1  0 13:47:08 pts/8     0:00 /local/home/sysload/coll/pgm/sldrm_coll start&lt;BR /&gt;    root 23284 23282  0 13:47:08 pts/8     0:00 sldrm_hist S35HP116 /local/home/sysload/coll/sldrmd.log 0 16300&lt;BR /&gt;root@d850vp01:.../rc3.d #&lt;BR /&gt;&lt;BR /&gt;pls see the contents of script:&lt;BR /&gt;&lt;BR /&gt;root@d850vp01:.../rc3.d # more S97sysload&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;#Sysload startup script&lt;BR /&gt;#&lt;BR /&gt;SYSLOAD_CONF=/local/home/sysload/coll/conf&lt;BR /&gt;case ${1} in&lt;BR /&gt;'start')&lt;BR /&gt;if [ -x ${SYSLOAD_CONF}/sldrmd ]; then&lt;BR /&gt;echo "Starting Sysload sldrmd..."&lt;BR /&gt;${SYSLOAD_CONF}/sldrmd start&lt;BR /&gt;fi&lt;BR /&gt;sleep 10&lt;BR /&gt;if [ -x ${SYSLOAD_CONF}/sldfsd ]; then&lt;BR /&gt;echo "Starting Sysload sldfsd..."&lt;BR /&gt;${SYSLOAD_CONF}/sldfsd start&lt;BR /&gt;fi&lt;BR /&gt;;;&lt;BR /&gt;&lt;BR /&gt;'stop')&lt;BR /&gt;if [ -x ${SYSLOAD_CONF}/sldfsd ]; then&lt;BR /&gt;echo "shutting down sldfsd Sysload ..."&lt;BR /&gt;${SYSLOAD_CONF}/sldfsd stop&lt;BR /&gt;fi&lt;BR /&gt;sleep 5&lt;BR /&gt;if [ -x ${SYSLOAD_CONF}/sldrmd ]; then&lt;BR /&gt;echo "shutting down sldrmd Sysload ..."&lt;BR /&gt;${SYSLOAD_CONF}/sldrmd stop&lt;BR /&gt;fi&lt;BR /&gt;sleep 10&lt;BR /&gt;;;&lt;BR /&gt;*)&lt;BR /&gt;echo "usage: /sbin/init.d/sysload {start|stop}"&lt;BR /&gt;;;&lt;BR /&gt;esac&lt;BR /&gt;&lt;BR /&gt;S97sysload: END&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Seems it bit confusing me to analyse and to get a work around to solve the issue.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance for your help.&lt;BR /&gt;Rgds&lt;BR /&gt;Sree&lt;BR /&gt;</description>
      <pubDate>Wed, 02 Mar 2011 12:52:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc-scripts-not-starting-while-server-reboots/m-p/4760251#M389020</guid>
      <dc:creator>Sreer</dc:creator>
      <dc:date>2011-03-02T12:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: rc scripts not starting while server reboots</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-scripts-not-starting-while-server-reboots/m-p/4760252#M389021</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Please remember use full path for commands not found. Or set a global PATH variable to search/execute these commands.&lt;BR /&gt;&lt;BR /&gt;For quick localization of a command: (i.e: dirname):&lt;BR /&gt;#whence dirname&lt;BR /&gt;&lt;BR /&gt;Rgds.</description>
      <pubDate>Wed, 02 Mar 2011 13:02:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc-scripts-not-starting-while-server-reboots/m-p/4760252#M389021</guid>
      <dc:creator>Jose Mosquera</dc:creator>
      <dc:date>2011-03-02T13:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: rc scripts not starting while server reboots</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-scripts-not-starting-while-server-reboots/m-p/4760253#M389022</link>
      <description>Hi Sorry,&lt;BR /&gt;Iam not sure about setting the global variable for this issue.&lt;BR /&gt;&lt;BR /&gt;will it be declared in /etc/profile?&lt;BR /&gt;&lt;BR /&gt;in this case how can I solve the issue?&lt;BR /&gt;&lt;BR /&gt;Thanks for help.&lt;BR /&gt;My scripting knowledge is poor :-(&lt;BR /&gt;&lt;BR /&gt;Rgds&lt;BR /&gt;Sree</description>
      <pubDate>Wed, 02 Mar 2011 13:08:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc-scripts-not-starting-while-server-reboots/m-p/4760253#M389022</guid>
      <dc:creator>Sreer</dc:creator>
      <dc:date>2011-03-02T13:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: rc scripts not starting while server reboots</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-scripts-not-starting-while-server-reboots/m-p/4760254#M389023</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;/etc/profile at booting time by rc process, Are you sure that PATH is loaded?&lt;BR /&gt;&lt;BR /&gt;Rgds.</description>
      <pubDate>Wed, 02 Mar 2011 13:19:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc-scripts-not-starting-while-server-reboots/m-p/4760254#M389023</guid>
      <dc:creator>Jose Mosquera</dc:creator>
      <dc:date>2011-03-02T13:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: rc scripts not starting while server reboots</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-scripts-not-starting-while-server-reboots/m-p/4760255#M389024</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Try set this in your script just for testing purposes:&lt;BR /&gt;PATH=`cat /etc/PATH`&lt;BR /&gt;&lt;BR /&gt;Rgds</description>
      <pubDate>Wed, 02 Mar 2011 13:42:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc-scripts-not-starting-while-server-reboots/m-p/4760255#M389024</guid>
      <dc:creator>Jose Mosquera</dc:creator>
      <dc:date>2011-03-02T13:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: rc scripts not starting while server reboots</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-scripts-not-starting-while-server-reboots/m-p/4760256#M389025</link>
      <description>Hi Jose,&lt;BR /&gt;&lt;BR /&gt;Thanks for your help.&lt;BR /&gt;&lt;BR /&gt;The PATH variable is already setted in /etc/profile.&lt;BR /&gt;&lt;BR /&gt;as you told do I need to put path info at starting of the script?&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;#Sysload startup script&lt;BR /&gt;#&lt;BR /&gt;PATH=`cat /etc/PATH`  ====&amp;gt; ???&lt;BR /&gt;SYSLOAD_CONF=/local/home/sysload/coll/conf&lt;BR /&gt;case ${1} in&lt;BR /&gt;'start')&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;pls correct me If am wrong.&lt;BR /&gt;&lt;BR /&gt;many thanks&lt;BR /&gt;Sree</description>
      <pubDate>Wed, 02 Mar 2011 16:32:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc-scripts-not-starting-while-server-reboots/m-p/4760256#M389025</guid>
      <dc:creator>Sreer</dc:creator>
      <dc:date>2011-03-02T16:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: rc scripts not starting while server reboots</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-scripts-not-starting-while-server-reboots/m-p/4760257#M389026</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Yes, set it there. Also remember export it.&lt;BR /&gt;Since when this happens?&lt;BR /&gt;Do you verified the existence of each of the executables (not found) by the command "whence"?&lt;BR /&gt;&lt;BR /&gt;Rgds</description>
      <pubDate>Wed, 02 Mar 2011 16:48:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc-scripts-not-starting-while-server-reboots/m-p/4760257#M389026</guid>
      <dc:creator>Jose Mosquera</dc:creator>
      <dc:date>2011-03-02T16:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: rc scripts not starting while server reboots</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-scripts-not-starting-while-server-reboots/m-p/4760258#M389027</link>
      <description>Hi Jose again..&lt;BR /&gt;&lt;BR /&gt;The issue is there till starting..after loading the sysload by other people.&lt;BR /&gt;&lt;BR /&gt;The thing is if we run the script manualy its running with out any issue.&lt;BR /&gt;&lt;BR /&gt;The same is not happening via server reboot !&lt;BR /&gt;mean via rc3.d.&lt;BR /&gt;&lt;BR /&gt;this is what confusing!&lt;BR /&gt;&lt;BR /&gt;many thnx for help.&lt;BR /&gt;&lt;BR /&gt;rgds&lt;BR /&gt;Sree</description>
      <pubDate>Wed, 02 Mar 2011 18:30:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc-scripts-not-starting-while-server-reboots/m-p/4760258#M389027</guid>
      <dc:creator>Sreer</dc:creator>
      <dc:date>2011-03-02T18:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: rc scripts not starting while server reboots</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-scripts-not-starting-while-server-reboots/m-p/4760259#M389028</link>
      <description>What is the ownership (owner:group) and privileges of the script?</description>
      <pubDate>Wed, 02 Mar 2011 18:58:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc-scripts-not-starting-while-server-reboots/m-p/4760259#M389028</guid>
      <dc:creator>Jose Mosquera</dc:creator>
      <dc:date>2011-03-02T18:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: rc scripts not starting while server reboots</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-scripts-not-starting-while-server-reboots/m-p/4760260#M389029</link>
      <description>Hi again,&lt;BR /&gt;&lt;BR /&gt;Have you noticed that errors comes from /local/home/sysload/coll/conf/sldrmd file?&lt;BR /&gt;local/home/sysload/coll/conf/sldrmd[9]: dirname: not found.&lt;BR /&gt;/local/home/sysload/coll/conf/sldrmd[35]: sed: not found.&lt;BR /&gt;/local/home/sysload/coll/conf/sldrmd[39]: /coll/pgm/sldrm_coll: not found&lt;BR /&gt;&lt;BR /&gt;Just one of them comes from /sbin/rc3.d/S97sysload file:&lt;BR /&gt;/sbin/rc3.d/S97sysload[11]: sleep: not found.&lt;BR /&gt;&lt;BR /&gt;Rgds.</description>
      <pubDate>Wed, 02 Mar 2011 19:12:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc-scripts-not-starting-while-server-reboots/m-p/4760260#M389029</guid>
      <dc:creator>Jose Mosquera</dc:creator>
      <dc:date>2011-03-02T19:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: rc scripts not starting while server reboots</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-scripts-not-starting-while-server-reboots/m-p/4760261#M389030</link>
      <description>/etc/profile is not run when booting up. /etc/profile is designed for people that login. When your script is run as a start up script, you must set the PATH variable. At the beginning of your script, add this statement:&lt;BR /&gt; &lt;BR /&gt;export PATH=$(cat /etc/PATH)&lt;BR /&gt; &lt;BR /&gt;That will propagate the PATH variable to all the sub-processes.</description>
      <pubDate>Thu, 03 Mar 2011 03:44:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc-scripts-not-starting-while-server-reboots/m-p/4760261#M389030</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2011-03-03T03:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: rc scripts not starting while server reboots</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-scripts-not-starting-while-server-reboots/m-p/4760262#M389031</link>
      <description>Also check to make sure that /usr/bin is mounted when you run your script.</description>
      <pubDate>Thu, 03 Mar 2011 17:31:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc-scripts-not-starting-while-server-reboots/m-p/4760262#M389031</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-03-03T17:31:39Z</dc:date>
    </item>
  </channel>
</rss>

