<?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: startup script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/startup-script/m-p/4102410#M312079</link>
    <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;All lazy (good) sysadmins minimize their work here.&lt;BR /&gt;&lt;BR /&gt;I generally take either /sbin/init.d/template or /etc/sbin/init.d/cron (or crond) and make a copy.&lt;BR /&gt;&lt;BR /&gt;Then I modify this script to actually start/stop my new application.&lt;BR /&gt;&lt;BR /&gt;Then I softlink to it in the /sbin/rc3.d directory for Start and /sbin/rc2.d dirctory for Kill&lt;BR /&gt;&lt;BR /&gt;SEP</description>
    <pubDate>Wed, 14 Nov 2007 10:09:48 GMT</pubDate>
    <dc:creator>Steven E. Protter</dc:creator>
    <dc:date>2007-11-14T10:09:48Z</dc:date>
    <item>
      <title>startup script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/startup-script/m-p/4102408#M312077</link>
      <description>Hello,&lt;BR /&gt;I have a command to start the application and stop the application.Please let me know how can i create a startup and shutdown scripts with this command so that no need for doing this manually when system reboot or shutdown.please help.&lt;BR /&gt;Thanks Much</description>
      <pubDate>Wed, 14 Nov 2007 10:03:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/startup-script/m-p/4102408#M312077</guid>
      <dc:creator>navin</dc:creator>
      <dc:date>2007-11-14T10:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: startup script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/startup-script/m-p/4102409#M312078</link>
      <description>This process is documented in the "rc" man page.  Have a look at that and let us know if you have specific suggestions.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Wed, 14 Nov 2007 10:09:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/startup-script/m-p/4102409#M312078</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2007-11-14T10:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: startup script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/startup-script/m-p/4102410#M312079</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;All lazy (good) sysadmins minimize their work here.&lt;BR /&gt;&lt;BR /&gt;I generally take either /sbin/init.d/template or /etc/sbin/init.d/cron (or crond) and make a copy.&lt;BR /&gt;&lt;BR /&gt;Then I modify this script to actually start/stop my new application.&lt;BR /&gt;&lt;BR /&gt;Then I softlink to it in the /sbin/rc3.d directory for Start and /sbin/rc2.d dirctory for Kill&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 14 Nov 2007 10:09:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/startup-script/m-p/4102410#M312079</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-11-14T10:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: startup script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/startup-script/m-p/4102411#M312080</link>
      <description>H Navin&lt;BR /&gt;&lt;BR /&gt;You can use this file to create your own /sbin/init.d script&lt;BR /&gt;&lt;BR /&gt;#!/sbin/sh&lt;BR /&gt;&lt;BR /&gt;case $1 in&lt;BR /&gt;'start_msg')&lt;BR /&gt;        ;;&lt;BR /&gt;'stop_msg')&lt;BR /&gt;        ;;&lt;BR /&gt;'start')&lt;BR /&gt;        ;;&lt;BR /&gt;'stop')&lt;BR /&gt;       ;;&lt;BR /&gt;*)&lt;BR /&gt;        echo "usage: $0 {start|stop}"&lt;BR /&gt;        ;;&lt;BR /&gt;esac&lt;BR /&gt;exit&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;And you must link this file to related /sbin/rc#.d/ directories to start and stop automatically&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Best Regards&lt;BR /&gt;Murat</description>
      <pubDate>Wed, 14 Nov 2007 10:11:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/startup-script/m-p/4102411#M312080</guid>
      <dc:creator>Murat SULUHAN</dc:creator>
      <dc:date>2007-11-14T10:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: startup script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/startup-script/m-p/4102412#M312081</link>
      <description>Hi!&lt;BR /&gt;&lt;BR /&gt;First go to /sbin/init.d, thats where alle the start/stop-scripts are located. Take one, copy it to a name that suits its new use, and modify it to stop and start using the commands you already got. The stop/start-framework in these scripts are pretty easy to figure out, so that should be no big deal.&lt;BR /&gt;&lt;BR /&gt;Then go to /sbin/rc3.d to create a link, which uses the script above to startup the application. It has to be called something like S&lt;NUMBER&gt;&amp;lt;scriptname&amp;gt;, like S91testapp. Make it with:&lt;BR /&gt;&lt;BR /&gt;ln -s /sbin/init.d/&lt;YOURSCRIPT&gt;&lt;YOURSCRIPT&gt;&lt;/YOURSCRIPT&gt;&lt;BR /&gt;If the application is dependent on some other startupscripts, please make sure that its S&lt;NUMBER&gt; is highter.&lt;BR /&gt;&lt;BR /&gt;Make the same in /sbin/rc2.d&lt;BR /&gt;&lt;BR /&gt;in /sbin/rc1.d and /sbin/rc0.d you will make something like this, but here it should start with a "K", and is used for shutdown. If other applications are dependent on yours, make sure yours are shut down before those (lesser number).&lt;BR /&gt;&lt;BR /&gt;That should be it.&lt;BR /&gt;&lt;BR /&gt;Yours&lt;BR /&gt;Danny&lt;BR /&gt;&lt;BR /&gt;&lt;/NUMBER&gt;&lt;/YOURSCRIPT&gt;&lt;/NUMBER&gt;</description>
      <pubDate>Wed, 14 Nov 2007 10:17:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/startup-script/m-p/4102412#M312081</guid>
      <dc:creator>Danny Petterson - DK</dc:creator>
      <dc:date>2007-11-14T10:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: startup script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/startup-script/m-p/4102413#M312082</link>
      <description>Hi :&lt;BR /&gt;&lt;BR /&gt;In addition to the 'rc(1M)' manpages as Pete suggested, you can use this whitepaper:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/934/startup.pdf" target="_blank"&gt;http://docs.hp.com/en/934/startup.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;While written at the inception of 10.0, it applies to all current releases of HP-UX.  The manpages for later releases document a return code of four (4) whereas the original whitepaper didn't.&lt;BR /&gt;&lt;BR /&gt;Be sure to use the '/sbin/init.d/template' as a starting point.  You need to provide the various cases for *your* startup script to interact correctly with the '/sbin/rc' driver code.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 14 Nov 2007 10:17:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/startup-script/m-p/4102413#M312082</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-11-14T10:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: startup script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/startup-script/m-p/4102414#M312083</link>
      <description>Let's not forget to change the CONTROL_VARIABLE in the copied template file and create a CONTROL_VARIABLE file in /etc/rc.config.d as well.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 14 Nov 2007 10:18:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/startup-script/m-p/4102414#M312083</guid>
      <dc:creator>Tim Nelson</dc:creator>
      <dc:date>2007-11-14T10:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: startup script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/startup-script/m-p/4102415#M312084</link>
      <description>Hi Navin:&lt;BR /&gt;&lt;BR /&gt;The rule is that the kill script goes in one run-level below that of the start script.&lt;BR /&gt;&lt;BR /&gt;e.g If your start script is&lt;BR /&gt;/sbin/rc3.d/S910application then your kill script should be /sbin/rc2.d/K090application.&lt;BR /&gt;&lt;BR /&gt;The other convention (though not a requirement) is that the 3 digits of both scripts should add to 1000. This almost always brings them up and down in the intended order. I have also implemented my applications to start in rc4.d and stop in rc3.d assuming the default run-level is 4.&lt;BR /&gt;&lt;BR /&gt;Best Regards, Ernesto</description>
      <pubDate>Wed, 14 Nov 2007 10:20:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/startup-script/m-p/4102415#M312084</guid>
      <dc:creator>Ernesto Cappello</dc:creator>
      <dc:date>2007-11-14T10:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: startup script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/startup-script/m-p/4102416#M312085</link>
      <description>Hello All,&lt;BR /&gt;Could you please some one see the below script  has any flaw...Thanks Much&lt;BR /&gt;&lt;BR /&gt;# more apache&lt;BR /&gt;#!/sbin/sh&lt;BR /&gt;&lt;BR /&gt;case $1 in&lt;BR /&gt;'start_msg')&lt;BR /&gt; echo "Start http server"&lt;BR /&gt;;;&lt;BR /&gt;'stop_msg')&lt;BR /&gt; echo "Stop http server"&lt;BR /&gt;;;&lt;BR /&gt;'start')&lt;BR /&gt; /websphere/ica/bin/apachetcl -k start&lt;BR /&gt;;;&lt;BR /&gt;'stop')&lt;BR /&gt;/websphere/ica/bin/apachetcl -k stop&lt;BR /&gt;;;&lt;BR /&gt;*)&lt;BR /&gt;echo "usage: $0 {start|stop}"&lt;BR /&gt;;;&lt;BR /&gt;esac&lt;BR /&gt;exit&lt;BR /&gt;&lt;BR /&gt;#</description>
      <pubDate>Wed, 14 Nov 2007 11:51:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/startup-script/m-p/4102416#M312085</guid>
      <dc:creator>navin</dc:creator>
      <dc:date>2007-11-14T11:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: startup script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/startup-script/m-p/4102417#M312086</link>
      <description>&lt;!--!*#--&gt;It looks fine.  The only question I would ask is do you need any variables set in order to start apache?&lt;BR /&gt;&lt;BR /&gt;If so, you would want to add something like this after the 'start') clause:&lt;BR /&gt;&lt;BR /&gt;if [ -f /etc/rc.config.d/apache ] ; then&lt;BR /&gt;                . /etc/rc.config.d/apache&lt;BR /&gt;        else&lt;BR /&gt;                echo "ERROR: /etc/rc.config.d/apache defaults file MISSING"&lt;BR /&gt;        fi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 14 Nov 2007 11:58:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/startup-script/m-p/4102417#M312086</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2007-11-14T11:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: startup script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/startup-script/m-p/4102418#M312087</link>
      <description>Navin -&lt;BR /&gt; Attached is an old doc that still works for what you are attempting. Note that it also supplies the technique used to test the process without actually shutting down or starting up.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;-dl</description>
      <pubDate>Wed, 14 Nov 2007 16:43:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/startup-script/m-p/4102418#M312087</guid>
      <dc:creator>Dave La Mar</dc:creator>
      <dc:date>2007-11-14T16:43:56Z</dc:date>
    </item>
  </channel>
</rss>

