<?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: System reboot in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/system-reboot/m-p/2785386#M78308</link>
    <description>You need 2 files and 2 symbolic link for this purpose. &lt;BR /&gt;1) /sbin/init.d/yourprogram&lt;BR /&gt;==&amp;gt; Make use of the file "template" in /sbin/init.d to customize your startup/shutdown program script.&lt;BR /&gt;2) /sbin/rc[0-&amp;gt;4].d&lt;BR /&gt;==&amp;gt; Depending on at which run level you want your program to startup/shutdown. Create the appropriate symbolic link back to /sbin/init.d/yourprogram. For example to start at run level 3, you would ..&lt;BR /&gt;S999-&amp;gt;/sbin/init.d/yourprogram&lt;BR /&gt;and to stop at run level 2, you would ..&lt;BR /&gt;K099-&amp;gt;/sbin/init.d/yourprogram&lt;BR /&gt;3) /etc/rc.config.d/yourprogram&lt;BR /&gt;==&amp;gt; Not actually the same file but rather the file that has the CONTROL_VARIABLE defined, so that to disable/enable the script you can simply turn the 0 or 1 bit. This var is checked everytime /sbin/init.d/yourprogram runs.&lt;BR /&gt;</description>
    <pubDate>Tue, 13 Aug 2002 18:45:46 GMT</pubDate>
    <dc:creator>S.K. Chan</dc:creator>
    <dc:date>2002-08-13T18:45:46Z</dc:date>
    <item>
      <title>System reboot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-reboot/m-p/2785382#M78304</link>
      <description>When the machine reboots, there is a file(s) that gets processed, sort of like autoexec.bat.  I want to add something to be run everytime the machine gets rebooted.  Where and which file?&lt;BR /&gt;</description>
      <pubDate>Tue, 13 Aug 2002 18:22:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-reboot/m-p/2785382#M78304</guid>
      <dc:creator>Jeff Hagstrom</dc:creator>
      <dc:date>2002-08-13T18:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: System reboot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-reboot/m-p/2785383#M78305</link>
      <description>There is not a single file that gets run, there are a bunch of them.&lt;BR /&gt;&lt;BR /&gt;What you are thinking of are the KILL scripts in /sbin/rc?.d.  If you want to add something to the shutdown you will have to create a new shutdown script that gets exectued at the appropriate run level.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 13 Aug 2002 18:27:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-reboot/m-p/2785383#M78305</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2002-08-13T18:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: System reboot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-reboot/m-p/2785384#M78306</link>
      <description>You can add a start-up script in /sbin/init.d, and link to it from /sbin/rc3.d.&lt;BR /&gt;&lt;BR /&gt;Follow the model of start files named with "S" as the first char. Also include handling for parameters "start_msg" and "start".&lt;BR /&gt;&lt;BR /&gt;If you need this at shutdown as well, another link with "K" as the first char, and handling for "stop_msg" and "stop".&lt;BR /&gt;&lt;BR /&gt;Tom</description>
      <pubDate>Tue, 13 Aug 2002 18:29:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-reboot/m-p/2785384#M78306</guid>
      <dc:creator>Tom Maloy</dc:creator>
      <dc:date>2002-08-13T18:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: System reboot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-reboot/m-p/2785385#M78307</link>
      <description>You could try to put an entry in /etc/inittab. See man inittab for details.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;Marty</description>
      <pubDate>Tue, 13 Aug 2002 18:30:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-reboot/m-p/2785385#M78307</guid>
      <dc:creator>Martin Johnson</dc:creator>
      <dc:date>2002-08-13T18:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: System reboot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-reboot/m-p/2785386#M78308</link>
      <description>You need 2 files and 2 symbolic link for this purpose. &lt;BR /&gt;1) /sbin/init.d/yourprogram&lt;BR /&gt;==&amp;gt; Make use of the file "template" in /sbin/init.d to customize your startup/shutdown program script.&lt;BR /&gt;2) /sbin/rc[0-&amp;gt;4].d&lt;BR /&gt;==&amp;gt; Depending on at which run level you want your program to startup/shutdown. Create the appropriate symbolic link back to /sbin/init.d/yourprogram. For example to start at run level 3, you would ..&lt;BR /&gt;S999-&amp;gt;/sbin/init.d/yourprogram&lt;BR /&gt;and to stop at run level 2, you would ..&lt;BR /&gt;K099-&amp;gt;/sbin/init.d/yourprogram&lt;BR /&gt;3) /etc/rc.config.d/yourprogram&lt;BR /&gt;==&amp;gt; Not actually the same file but rather the file that has the CONTROL_VARIABLE defined, so that to disable/enable the script you can simply turn the 0 or 1 bit. This var is checked everytime /sbin/init.d/yourprogram runs.&lt;BR /&gt;</description>
      <pubDate>Tue, 13 Aug 2002 18:45:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-reboot/m-p/2785386#M78308</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-08-13T18:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: System reboot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-reboot/m-p/2785387#M78309</link>
      <description>Hi Jeff&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The noraml level after the system reboots is 3 , so to include the files like you do in autoexec.bat you need to put the files in /sbin/init.d and link to /sbin/rc3.d&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Manoj Srivastava</description>
      <pubDate>Tue, 13 Aug 2002 19:00:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-reboot/m-p/2785387#M78309</guid>
      <dc:creator>MANOJ SRIVASTAVA</dc:creator>
      <dc:date>2002-08-13T19:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: System reboot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-reboot/m-p/2785388#M78310</link>
      <description>You are looking for the startup and shutdown scripts.&lt;BR /&gt;&lt;BR /&gt;The scripts are placed in /sbin/init.d&lt;BR /&gt;&lt;BR /&gt;then you link to them from /etc/rcN.d&lt;BR /&gt;&lt;BR /&gt;Typically you'll put the script you want to run at boot in /etc/rc3.d with the following naming convention.&lt;BR /&gt;&lt;BR /&gt;/etc/rc3.d/SNNNyourscriptname&lt;BR /&gt;&lt;BR /&gt;where NNN is a number between 001-999  &lt;BR /&gt;The system executes them in alpha order so S001abc runs before S999abc.&lt;BR /&gt;&lt;BR /&gt;If you want a script to run at shutdown you'll put it in /etc/rc2.d with the following naming convention.&lt;BR /&gt;&lt;BR /&gt;/etc/rc2.d/KNNNyourscriptname&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You link the script using the follwing command.&lt;BR /&gt;&lt;BR /&gt;ln -s /sbin/init.d/yourscriptname /etc/rc3.d/SNNNyourscriptname&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Sean</description>
      <pubDate>Tue, 13 Aug 2002 19:05:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-reboot/m-p/2785388#M78310</guid>
      <dc:creator>Sean OB_1</dc:creator>
      <dc:date>2002-08-13T19:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: System reboot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-reboot/m-p/2785389#M78311</link>
      <description>have a read of start_up.txt in /usr/share/doc&lt;BR /&gt;&lt;BR /&gt;This discusses the methodology of doing exactly this.,</description>
      <pubDate>Tue, 13 Aug 2002 19:15:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-reboot/m-p/2785389#M78311</guid>
      <dc:creator>melvyn burnard</dc:creator>
      <dc:date>2002-08-13T19:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: System reboot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-reboot/m-p/2785390#M78312</link>
      <description>As an aside, I set up a script to page me (via email to my pager) whenever the system reboots.  I set it up exactly as S.K.Chan describes above except I have no control variable file:&lt;BR /&gt;&lt;BR /&gt;/sbin/init.d/boot.alert&lt;BR /&gt;(the script file)&lt;BR /&gt;&lt;BR /&gt;/sbin/rc3.d/S400boot.alert&lt;BR /&gt;(a link to the script file)&lt;BR /&gt;&lt;BR /&gt;When my system reboots, I get the email page, but I get it twice.&lt;BR /&gt;&lt;BR /&gt;Not sure why I get it twice.&lt;BR /&gt;</description>
      <pubDate>Wed, 14 Aug 2002 17:17:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-reboot/m-p/2785390#M78312</guid>
      <dc:creator>Fred Martin_1</dc:creator>
      <dc:date>2002-08-14T17:17:23Z</dc:date>
    </item>
  </channel>
</rss>

