<?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: Executing Script While System Booting... in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/executing-script-while-system-booting/m-p/4990610#M781233</link>
    <description>Sundar,&lt;BR /&gt;I am assuming here that my script that you have accurately modified is copied as&lt;BR /&gt;/sbin/init.d/backup&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;DP</description>
    <pubDate>Thu, 13 Jul 2006 18:58:37 GMT</pubDate>
    <dc:creator>Devesh Pant_1</dc:creator>
    <dc:date>2006-07-13T18:58:37Z</dc:date>
    <item>
      <title>Executing Script While System Booting...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/executing-script-while-system-booting/m-p/4990605#M781228</link>
      <description>Hi I want to Execute a Script while Booting or Entering Runlevel 3...&amp;amp; to Kill it in Level 2...&lt;BR /&gt;&lt;BR /&gt;Give me the steps that I need to do...</description>
      <pubDate>Wed, 12 Jul 2006 23:07:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/executing-script-while-system-booting/m-p/4990605#M781228</guid>
      <dc:creator>susee_sundar</dc:creator>
      <dc:date>2006-07-12T23:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: Executing Script While System Booting...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/executing-script-while-system-booting/m-p/4990606#M781229</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;1. create a new start and stop script in /sbin/init.d/ and you could use the script /sbin/init.d/template as the template.&lt;BR /&gt;&lt;BR /&gt;2. create a softlink in /sbin/rc3.d&lt;BR /&gt;# ln -s /sbin/init.d/[your script] /sbin/rc3.d/S***[your script]&lt;BR /&gt;&lt;BR /&gt;3. create a softlink in /sbin/rc2.d&lt;BR /&gt;# ln -s /sbin/init.d/[your script] /sbin/rc2.d/K***[your script]&lt;BR /&gt;&lt;BR /&gt;you may also create a startup configure file in /etc/rc.config.d/&lt;BR /&gt;&lt;BR /&gt;GOOD LUCK!!!&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 12 Jul 2006 23:21:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/executing-script-while-system-booting/m-p/4990606#M781229</guid>
      <dc:creator>Warren_9</dc:creator>
      <dc:date>2006-07-12T23:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: Executing Script While System Booting...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/executing-script-while-system-booting/m-p/4990607#M781230</link>
      <description>Susee Sundar,&lt;BR /&gt;&lt;BR /&gt;you need to create links in the /sbin/rc3.d for the startup execution at runlevel3 and /sbin/rc2.d for the kill execution at runlevel 2&lt;BR /&gt;&lt;BR /&gt;example:&lt;BR /&gt;say the scripts are /usr/local/bin/script2start&lt;BR /&gt;and&lt;BR /&gt;/usr/local/bin/script2stop&lt;BR /&gt;&lt;BR /&gt;make sure it has the standard start/stop format see attachment example&lt;BR /&gt;&lt;BR /&gt;place this startstopscript in the /sbin/init.d directory make sure the execuable permissions are correct&lt;BR /&gt;&lt;BR /&gt;cd to /sbin/rc3.d and create the link&lt;BR /&gt;ln -s /sbin/init.d/startstopscript S901startstopscript&lt;BR /&gt;&lt;BR /&gt;this will create a link for the starup&lt;BR /&gt;&lt;BR /&gt;now for the shutdown cd to /sbin/rc2.d and create another link&lt;BR /&gt;&lt;BR /&gt;ln -s /sbin/init.d/startstopscript K99startstopscript&lt;BR /&gt;&lt;BR /&gt;this will create the kill or the stop link&lt;BR /&gt;This should do it&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;DP</description>
      <pubDate>Wed, 12 Jul 2006 23:33:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/executing-script-while-system-booting/m-p/4990607#M781230</guid>
      <dc:creator>Devesh Pant_1</dc:creator>
      <dc:date>2006-07-12T23:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: Executing Script While System Booting...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/executing-script-while-system-booting/m-p/4990608#M781231</link>
      <description>Well DP &amp;amp; Warren..&lt;BR /&gt;&lt;BR /&gt;From Your Guidelines...Here I Created the steps &lt;BR /&gt;Suggest Me whether it is Right...&lt;BR /&gt;&lt;BR /&gt;The Script to Start is /sbin/init.d/Start&lt;BR /&gt;_Backup&lt;BR /&gt;The Script to Stop is /sbin/init.d/Stop_Backup&lt;BR /&gt;Permissions Are Fine....&lt;BR /&gt;&lt;BR /&gt;ln -s /sbin/init.d/Start_Backup&lt;BR /&gt;/sbin/rc3.d/S756Backup&lt;BR /&gt;ln -s /sbin/init.d/Stop_Backup /sbin/rc2.d/K982Backup&lt;BR /&gt;&lt;BR /&gt;Here I attached the Script as given by DP...&lt;BR /&gt;But Where I need to Copy this File in /sbin/init.d or in /etc/rc.config.d directory..&lt;BR /&gt;&lt;BR /&gt;Whether this file is Enough for Starting &amp;amp; Killing or I need to Creare One more file for Killing ....&lt;BR /&gt;&lt;BR /&gt;Pls Clarify......&lt;BR /&gt;&lt;BR /&gt;---------------------------------------------&lt;BR /&gt;&lt;BR /&gt;If Not So Clear:-&lt;BR /&gt;THE SCRIPT /SBIN/INIT.D/BACKUP&lt;BR /&gt;&lt;BR /&gt;I WANT TO START IN RUNLEVEL 3 &amp;amp; KILL AT LEVEL 2.&lt;BR /&gt;PROVIDE ME THE FILE THAT WILL DO THIS ...</description>
      <pubDate>Thu, 13 Jul 2006 00:14:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/executing-script-while-system-booting/m-p/4990608#M781231</guid>
      <dc:creator>susee_sundar</dc:creator>
      <dc:date>2006-07-13T00:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: Executing Script While System Booting...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/executing-script-while-system-booting/m-p/4990609#M781232</link>
      <description>Sundar,&lt;BR /&gt;you are fine there all you need to do is to check the permissions on the script /sbin/init.d/backup&lt;BR /&gt;remove the links you created earlier&lt;BR /&gt;by doing &lt;BR /&gt;cd /sbin/rc3.d&lt;BR /&gt;rm S756Backup&lt;BR /&gt;and &lt;BR /&gt;cd /sbin/rc2.d&lt;BR /&gt;rm K982Backup&lt;BR /&gt;&lt;BR /&gt;recreate the links as follows&lt;BR /&gt;ln -s /sbin/init.d/backup&lt;BR /&gt;/sbin/rc3.d/S756Backup&lt;BR /&gt;ln -s /sbin/init.d/backup /sbin/rc2.d/K982Backup&lt;BR /&gt;&lt;BR /&gt;Just a note:&lt;BR /&gt;The numbers ( S756 and K982) although you can use whatever you want but the recommended way is to substract the start number from 1000 and use it for the kill script. So if possible use S756 and K244&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;DP</description>
      <pubDate>Thu, 13 Jul 2006 18:53:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/executing-script-while-system-booting/m-p/4990609#M781232</guid>
      <dc:creator>Devesh Pant_1</dc:creator>
      <dc:date>2006-07-13T18:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: Executing Script While System Booting...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/executing-script-while-system-booting/m-p/4990610#M781233</link>
      <description>Sundar,&lt;BR /&gt;I am assuming here that my script that you have accurately modified is copied as&lt;BR /&gt;/sbin/init.d/backup&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;DP</description>
      <pubDate>Thu, 13 Jul 2006 18:58:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/executing-script-while-system-booting/m-p/4990610#M781233</guid>
      <dc:creator>Devesh Pant_1</dc:creator>
      <dc:date>2006-07-13T18:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: Executing Script While System Booting...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/executing-script-while-system-booting/m-p/4990611#M781234</link>
      <description>Hi Thanks Dp &amp;amp; to All...</description>
      <pubDate>Fri, 14 Jul 2006 00:48:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/executing-script-while-system-booting/m-p/4990611#M781234</guid>
      <dc:creator>susee_sundar</dc:creator>
      <dc:date>2006-07-14T00:48:52Z</dc:date>
    </item>
  </channel>
</rss>

