<?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: start a script at boot in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/start-a-script-at-boot/m-p/2629200#M40657</link>
    <description>Create a dummy script in the /sbin/init.d that has the standard 'start/stop' options, which then calls the relevant script with the appropriate options.&lt;BR /&gt;&lt;BR /&gt;eg. sap_ctrl script (for starting sap) calls the 'start_sap' command as p01adm in the 'start' conditional.&lt;BR /&gt;&lt;BR /&gt;The script does have to work within the guidelines and standards set by HP-UX.&lt;BR /&gt;&lt;BR /&gt;Share and Enjoy! Ian</description>
    <pubDate>Tue, 11 Dec 2001 10:55:43 GMT</pubDate>
    <dc:creator>Ian Dennison_1</dc:creator>
    <dc:date>2001-12-11T10:55:43Z</dc:date>
    <item>
      <title>start a script at boot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/start-a-script-at-boot/m-p/2629195#M40652</link>
      <description>How starting a script without start or stop&lt;BR /&gt;argument when an hpux boot .&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Dec 2001 10:45:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/start-a-script-at-boot/m-p/2629195#M40652</guid>
      <dc:creator>iranzo</dc:creator>
      <dc:date>2001-12-11T10:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: start a script at boot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/start-a-script-at-boot/m-p/2629196#M40653</link>
      <description>Hi there.&lt;BR /&gt;Check the scripts in /sbin/rc2.d or /sbin/rc3.d&lt;BR /&gt;Look at these scripts. Setup your script the same way. Place it in /sbin/rc3.d and it should work.&lt;BR /&gt;Rgds&lt;BR /&gt;Alexander M. Ermes</description>
      <pubDate>Tue, 11 Dec 2001 10:51:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/start-a-script-at-boot/m-p/2629196#M40653</guid>
      <dc:creator>Alexander M. Ermes</dc:creator>
      <dc:date>2001-12-11T10:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: start a script at boot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/start-a-script-at-boot/m-p/2629197#M40654</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;The /sbin/rc script *expects* you to use the start/stop arguments.  Have you any more details/reasons for this request?&lt;BR /&gt;&lt;BR /&gt;Rgds, Robin.</description>
      <pubDate>Tue, 11 Dec 2001 10:52:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/start-a-script-at-boot/m-p/2629197#M40654</guid>
      <dc:creator>Robin Wakefield</dc:creator>
      <dc:date>2001-12-11T10:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: start a script at boot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/start-a-script-at-boot/m-p/2629198#M40655</link>
      <description>Just make your script, as if it is a normal startup/shutdown script. The start and stop parameters will be ignored if you don't use them.&lt;BR /&gt;&lt;BR /&gt;If those parameters are in the way, make a small start/stop script in /sbin/init.d that sources or executes your script without parameters if it is started with the "start" parameter.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Dec 2001 10:54:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/start-a-script-at-boot/m-p/2629198#M40655</guid>
      <dc:creator>Wim Rombauts</dc:creator>
      <dc:date>2001-12-11T10:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: start a script at boot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/start-a-script-at-boot/m-p/2629199#M40656</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;The stub procedure goes like this:&lt;BR /&gt;&lt;BR /&gt;=============================&lt;BR /&gt;#!/sbin/sh&lt;BR /&gt;&lt;BR /&gt;case $1 in&lt;BR /&gt;  start) # enter startup command here ;;&lt;BR /&gt;  stop) # enter shutdown command here, optional ;;&lt;BR /&gt;  start_msg) # enter startup message here, optional ;;&lt;BR /&gt;  stop_msg) # enter shutdown message here, optional ;;&lt;BR /&gt;esac&lt;BR /&gt;=============================&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong&lt;BR /&gt;Brainbench MVP for Unix Admin&lt;BR /&gt;&lt;A href="http://www.brainbench.com" target="_blank"&gt;http://www.brainbench.com&lt;/A&gt;</description>
      <pubDate>Tue, 11 Dec 2001 10:55:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/start-a-script-at-boot/m-p/2629199#M40656</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2001-12-11T10:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: start a script at boot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/start-a-script-at-boot/m-p/2629200#M40657</link>
      <description>Create a dummy script in the /sbin/init.d that has the standard 'start/stop' options, which then calls the relevant script with the appropriate options.&lt;BR /&gt;&lt;BR /&gt;eg. sap_ctrl script (for starting sap) calls the 'start_sap' command as p01adm in the 'start' conditional.&lt;BR /&gt;&lt;BR /&gt;The script does have to work within the guidelines and standards set by HP-UX.&lt;BR /&gt;&lt;BR /&gt;Share and Enjoy! Ian</description>
      <pubDate>Tue, 11 Dec 2001 10:55:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/start-a-script-at-boot/m-p/2629200#M40657</guid>
      <dc:creator>Ian Dennison_1</dc:creator>
      <dc:date>2001-12-11T10:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: start a script at boot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/start-a-script-at-boot/m-p/2629201#M40658</link>
      <description>Hi,&lt;BR /&gt;Usualy to start process on boot :&lt;BR /&gt;Create your script on /sbin/init.d  &lt;BR /&gt;Create a link from this scrip to /sbin/rcx.d (where x indicate the start level) called SXXXyourscript. &lt;BR /&gt;Fr??d??ric&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Dec 2001 10:56:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/start-a-script-at-boot/m-p/2629201#M40658</guid>
      <dc:creator>Frederic Sevestre</dc:creator>
      <dc:date>2001-12-11T10:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: start a script at boot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/start-a-script-at-boot/m-p/2629202#M40659</link>
      <description>Hi&lt;BR /&gt;  If you just want to run a script at startup and shutdown you can place your script in /sbin/init.d, create soft links in /sbin/rc3.d for startup and soft link in /sbin/rc2.d for shutdown and  the configuration file, if your want to run it occasionally in /etc/rc.config.d&lt;BR /&gt;   Let it do what you want to do ignoring the start and stop argument. But I think you need to handle the startmsg and stopmsg arguments.&lt;BR /&gt;&lt;BR /&gt;...BPK...</description>
      <pubDate>Tue, 11 Dec 2001 11:02:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/start-a-script-at-boot/m-p/2629202#M40659</guid>
      <dc:creator>Praveen Bezawada</dc:creator>
      <dc:date>2001-12-11T11:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: start a script at boot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/start-a-script-at-boot/m-p/2629203#M40660</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;As others say, the appropriate method for starting processes at boot time is the RC scripts.  As long as your script's name begins with a capital S the script will be executed by /sbin/rc when it executes scripts for that run level.  You don't have to use the case statement with start, stop, etc but it is highly recommended.&lt;BR /&gt;&lt;BR /&gt;As an alternative, you could use /etc/inittab.  This is not the generally accepted method and I suggest you avoid it.  Mess up inittab and you've got trouble.&lt;BR /&gt;&lt;BR /&gt;My advice is to stick with the RC scripts.  It is the standard, there are templates (just use any system supplied rc script as a guide), and logging is provided (/etc/rc.log).&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Tue, 11 Dec 2001 14:04:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/start-a-script-at-boot/m-p/2629203#M40660</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2001-12-11T14:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: start a script at boot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/start-a-script-at-boot/m-p/2629204#M40661</link>
      <description>Hi Malosse,&lt;BR /&gt;&lt;BR /&gt;Try this pdf,&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;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Dec 2001 16:13:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/start-a-script-at-boot/m-p/2629204#M40661</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2001-12-11T16:13:49Z</dc:date>
    </item>
  </channel>
</rss>

