<?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: Script on startup in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-on-startup/m-p/5271443#M473402</link>
    <description>&amp;gt;I have added the script under /sbin/rc3.d/&lt;BR /&gt;&lt;BR /&gt;What is the name of the script?&lt;BR /&gt;All rc(1m) scripts should be under /sbin/init.d/.  Then you should symlink them under the appropriate run level:&lt;BR /&gt;ln -s /sbin/rc3.d/nice-name /sbin/rc3.d/S###nice-name&lt;BR /&gt;&lt;BR /&gt;$ ll /sbin/rc3.d/ &lt;BR /&gt;S100nfs.server@ -&amp;gt; /sbin/init.d/nfs.server&lt;BR /&gt;&lt;BR /&gt;Anything in /etc/rc.log?</description>
    <pubDate>Tue, 25 Jan 2011 12:12:45 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2011-01-25T12:12:45Z</dc:date>
    <item>
      <title>Script on startup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-on-startup/m-p/5271442#M473401</link>
      <description>Hi Guys, &lt;BR /&gt;&lt;BR /&gt;I have the below scripts that I would like to run on start up on hp-ux 11i v2 but the routes are not being added automatically. &lt;BR /&gt;&lt;BR /&gt;#!/sbin/sh&lt;BR /&gt;/usr/sbin/route add net 10.1.136.0 netmask 255.255.255.0 10.1.156.36 1&lt;BR /&gt;/usr/sbin/route add net 10.1.16.0 netmask 255.255.255.0 10.1.156.36 1&lt;BR /&gt;&lt;BR /&gt;I have added the script under /sbin/rc3.d/&lt;BR /&gt;and the permission are 744.&lt;BR /&gt;&lt;BR /&gt;my runlevel is 3 : &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#who -r&lt;BR /&gt;   .       run-level 3  Jan 23 20:34    3    0    S&lt;BR /&gt;&lt;BR /&gt;Can anyone advise what could be the issue ?&lt;BR /&gt;&lt;BR /&gt;thanks a lot for your usual support.&lt;BR /&gt;&lt;BR /&gt;Jean</description>
      <pubDate>Tue, 25 Jan 2011 11:49:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-on-startup/m-p/5271442#M473401</guid>
      <dc:creator>Jean Samarani</dc:creator>
      <dc:date>2011-01-25T11:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: Script on startup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-on-startup/m-p/5271443#M473402</link>
      <description>&amp;gt;I have added the script under /sbin/rc3.d/&lt;BR /&gt;&lt;BR /&gt;What is the name of the script?&lt;BR /&gt;All rc(1m) scripts should be under /sbin/init.d/.  Then you should symlink them under the appropriate run level:&lt;BR /&gt;ln -s /sbin/rc3.d/nice-name /sbin/rc3.d/S###nice-name&lt;BR /&gt;&lt;BR /&gt;$ ll /sbin/rc3.d/ &lt;BR /&gt;S100nfs.server@ -&amp;gt; /sbin/init.d/nfs.server&lt;BR /&gt;&lt;BR /&gt;Anything in /etc/rc.log?</description>
      <pubDate>Tue, 25 Jan 2011 12:12:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-on-startup/m-p/5271443#M473402</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-01-25T12:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: Script on startup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-on-startup/m-p/5271444#M473403</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Have you tested them manually (from prompt) to ensure that are reachable?&lt;BR /&gt;&lt;BR /&gt;After this you must create in /sbin/init.d a file with the following content:&lt;BR /&gt;#!/sbin/sh&lt;BR /&gt;&lt;BR /&gt;RVAL=0&lt;BR /&gt;case $1 in&lt;BR /&gt;start_msg)&lt;BR /&gt;   echo "Adding extra routes"&lt;BR /&gt;;;&lt;BR /&gt;'start')&lt;BR /&gt;/usr/sbin/route add net 10.1.136.0 netmask 255.255.255.0 10.1.156.36 1&lt;BR /&gt;/usr/sbin/route add net 10.1.16.0 netmask 255.255.255.0 10.1.156.36 1&lt;BR /&gt;;;&lt;BR /&gt;'stop')&lt;BR /&gt;/usr/sbin/route delete net 10.1.136.0 netmask 255.255.255.0 10.1.156.36&lt;BR /&gt;/usr/sbin/route delete net 10.1.16.0 netmask 255.255.255.0 10.1.156.36&lt;BR /&gt;;;&lt;BR /&gt;*)&lt;BR /&gt;   echo "usage: $0 {start|stop}"&lt;BR /&gt;   RVAL=1&lt;BR /&gt;;;&lt;BR /&gt;esac&lt;BR /&gt;exit $RVAL&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;And finally, from /sbin/rc3.d you must create a symbolic link name with "S" prefix that aims to /sbin/init.d/&lt;FILENAME&gt; to start procedure, then in /sbin/rc0.d you must create a similar symbolic link with "K" prefix to stop procedure, this is optional because when the server go down this route definitions will be off.&lt;BR /&gt;&lt;BR /&gt;Rgds.&lt;/FILENAME&gt;</description>
      <pubDate>Tue, 25 Jan 2011 12:19:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-on-startup/m-p/5271444#M473403</guid>
      <dc:creator>Jose Mosquera</dc:creator>
      <dc:date>2011-01-25T12:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: Script on startup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-on-startup/m-p/5271445#M473404</link>
      <description>All you're doing is adding routes.  Why have a separate script?  Add them into /etc/rc.config.d/netconf.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Tue, 25 Jan 2011 12:32:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-on-startup/m-p/5271445#M473404</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2011-01-25T12:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Script on startup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-on-startup/m-p/5271446#M473405</link>
      <description>Hi Jean:&lt;BR /&gt;&lt;BR /&gt;You might want to review the 'rc(1M)' manpages which document the requirements for start/kill scripts. &lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 25 Jan 2011 12:32:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-on-startup/m-p/5271446#M473405</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2011-01-25T12:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: Script on startup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-on-startup/m-p/5271447#M473406</link>
      <description>All start/stop scripts must honor 4 parameters, not just 2: start stop start_msg stop_msg&lt;BR /&gt; &lt;BR /&gt;If you do not provide the start_msg and stop_msg, then your system shutdown screen will be filled up with dots .............&lt;BR /&gt; &lt;BR /&gt;However, using an rc (start/stop) script is definitely the wrong way to set a permanent route. As mentioned before, you edit the netconf file in /etc/rc.config.d to add routes.</description>
      <pubDate>Wed, 26 Jan 2011 03:10:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-on-startup/m-p/5271447#M473406</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2011-01-26T03:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: Script on startup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-on-startup/m-p/5271448#M473407</link>
      <description>The netconf file approach to add routes for subnets didn't work that's why I have used the script to add them .</description>
      <pubDate>Wed, 26 Jan 2011 07:42:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-on-startup/m-p/5271448#M473407</guid>
      <dc:creator>Jean Samarani</dc:creator>
      <dc:date>2011-01-26T07:42:42Z</dc:date>
    </item>
  </channel>
</rss>

