<?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: Boot Alert Script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/boot-alert-script/m-p/2429934#M2638</link>
    <description>I put mine at the end of the /sbin/rc script so the last thing the system does is sendout the email just added a couple of lines to it.  Only danger is if you upgrade your system this script will problably be overwritten.</description>
    <pubDate>Tue, 11 Jul 2000 11:58:29 GMT</pubDate>
    <dc:creator>Donald Branch</dc:creator>
    <dc:date>2000-07-11T11:58:29Z</dc:date>
    <item>
      <title>Boot Alert Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/boot-alert-script/m-p/2429926#M2630</link>
      <description>I wish to be alerted via an email-page whenever my HP-UX 10.20 system Boots.&lt;BR /&gt;&lt;BR /&gt;I already have written a script that works fine, I only need to insert it into the rc process someplace.&lt;BR /&gt;&lt;BR /&gt;It's not a service to start or stop, just a simple execute.  Requires /usr/bin and needs sendmail running, so the script must run after mounts and after sendmail starts.&lt;BR /&gt;&lt;BR /&gt;What's the proper place to put the script?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Fred&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Jul 2000 13:42:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/boot-alert-script/m-p/2429926#M2630</guid>
      <dc:creator>Fred Martin_1</dc:creator>
      <dc:date>2000-07-10T13:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: Boot Alert Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/boot-alert-script/m-p/2429927#M2631</link>
      <description>A good place to put the script is in /sbin/rc3.d/SXXXscriptname where XXX is larger than the other numbers in the directory. This will run your script after everything else has started.&lt;BR /&gt;&lt;BR /&gt;Brian&lt;BR /&gt;&amp;lt;*(((&amp;gt;&amp;lt; er</description>
      <pubDate>Mon, 10 Jul 2000 13:45:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/boot-alert-script/m-p/2429927#M2631</guid>
      <dc:creator>Brian M. Fisher</dc:creator>
      <dc:date>2000-07-10T13:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: Boot Alert Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/boot-alert-script/m-p/2429928#M2632</link>
      <description>Fred,&lt;BR /&gt;&lt;BR /&gt;Why not add it as the entry in the inittab?  I would include it as a 'once' feature for the run-level 3 (or whatever your default level of operation is).&lt;BR /&gt;&lt;BR /&gt;That way, whenever your server comes back to this level, you'll be notified.&lt;BR /&gt;&lt;BR /&gt;Hope that helps.&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Jul 2000 13:46:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/boot-alert-script/m-p/2429928#M2632</guid>
      <dc:creator>Albert E. Whale, CISSP</dc:creator>
      <dc:date>2000-07-10T13:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: Boot Alert Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/boot-alert-script/m-p/2429929#M2633</link>
      <description>Since the rc scripts are executed in Ascending order, you will have to set up your script to have a number that is greater than the Start number for sendmail -eg.&lt;BR /&gt;&lt;BR /&gt;if your sendmail startscript is /sbin/rc2.d/S540sendmail you will have to configure your bootalert script to be say /sbin/rc2.d/S550bootalert.&lt;BR /&gt;&lt;BR /&gt;Good luck.</description>
      <pubDate>Mon, 10 Jul 2000 13:47:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/boot-alert-script/m-p/2429929#M2633</guid>
      <dc:creator>Kofi ARTHIABAH</dc:creator>
      <dc:date>2000-07-10T13:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: Boot Alert Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/boot-alert-script/m-p/2429930#M2634</link>
      <description>Brian, a bit confused about rc2.d and rc3.d - in another thread you said that rc3.d scripts are for startup, rc2.d scripts are for shutdown.&lt;BR /&gt;&lt;BR /&gt;If that's true, wouldn't my script be placed in rc2.d?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Fred&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Jul 2000 14:12:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/boot-alert-script/m-p/2429930#M2634</guid>
      <dc:creator>Fred Martin_1</dc:creator>
      <dc:date>2000-07-10T14:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: Boot Alert Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/boot-alert-script/m-p/2429931#M2635</link>
      <description>Fred,&lt;BR /&gt;&lt;BR /&gt;You'll find the "System Startup White Paper" attached to this message. It describes the use of the start/kill Scripts in /sbin. Maybe it gives you a closer look when the scripts are executed.&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Jul 2000 14:25:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/boot-alert-script/m-p/2429931#M2635</guid>
      <dc:creator>Patrick Wessel</dc:creator>
      <dc:date>2000-07-10T14:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: Boot Alert Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/boot-alert-script/m-p/2429932#M2636</link>
      <description>Fred, &lt;BR /&gt;&lt;BR /&gt;I was under the impression you wanted the message sent after the reboot was completed, instead of as the system was going down. If you want it to execute as the system is going down, put the script in /sbin/rc2.d/KXXXscriptname where XXX is a low number that gets executed as soon as the system shutdown starts. Keep in mind these scripts are NOT executed if the reboot command is issued.&lt;BR /&gt;&lt;BR /&gt;Brian&lt;BR /&gt;&amp;lt;*(((&amp;gt;&amp;lt; er</description>
      <pubDate>Mon, 10 Jul 2000 14:49:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/boot-alert-script/m-p/2429932#M2636</guid>
      <dc:creator>Brian M. Fisher</dc:creator>
      <dc:date>2000-07-10T14:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: Boot Alert Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/boot-alert-script/m-p/2429933#M2637</link>
      <description>Brian, I did want it exececuted as the system starts up, so I'll be aware of any boots caused by catastrophic events like somebody recycling the power on the box without a shutdown, etc.&lt;BR /&gt;&lt;BR /&gt;Thanks much,&lt;BR /&gt;Fred&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Jul 2000 14:56:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/boot-alert-script/m-p/2429933#M2637</guid>
      <dc:creator>Fred Martin_1</dc:creator>
      <dc:date>2000-07-10T14:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: Boot Alert Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/boot-alert-script/m-p/2429934#M2638</link>
      <description>I put mine at the end of the /sbin/rc script so the last thing the system does is sendout the email just added a couple of lines to it.  Only danger is if you upgrade your system this script will problably be overwritten.</description>
      <pubDate>Tue, 11 Jul 2000 11:58:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/boot-alert-script/m-p/2429934#M2638</guid>
      <dc:creator>Donald Branch</dc:creator>
      <dc:date>2000-07-11T11:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: Boot Alert Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/boot-alert-script/m-p/2429935#M2639</link>
      <description>A key point to keep in mind is that on the way up the system starts the jobs in /sbin/rc*.d that begin with a capital S, and on the way down it executes scripts whose names begin with a capital K. The rc* number corresponds to the run level and the system executes the scripts in all the run levels that it passes until it reaches the target run level. To get to run level three, it executes rc1.d/S*, rc2.d/S*, and rc3.d/S*. Since sendmail is rc2.d/S540sendmail it should either be a higher number in rc2.d, or it should be in rc3.d</description>
      <pubDate>Tue, 11 Jul 2000 12:26:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/boot-alert-script/m-p/2429935#M2639</guid>
      <dc:creator>Duane Gorder</dc:creator>
      <dc:date>2000-07-11T12:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Boot Alert Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/boot-alert-script/m-p/2429936#M2640</link>
      <description>Fred,&lt;BR /&gt;&lt;BR /&gt;I take it that you do not like the idea of installing the script in the inittab?  It's Very convenient, and you do not need to code the acceptance of the arg $1 being either a start or a stop command.&lt;BR /&gt;&lt;BR /&gt;HTH!&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Jul 2000 13:25:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/boot-alert-script/m-p/2429936#M2640</guid>
      <dc:creator>Albert E. Whale, CISSP</dc:creator>
      <dc:date>2000-07-11T13:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: Boot Alert Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/boot-alert-script/m-p/2429937#M2641</link>
      <description>Albert&lt;BR /&gt;It's more an issue of comfort than disliking it - I don't typically mess with system files like inittab unless really necessary; also I assumed that inittab was better suited to stuff that needs to re-spawn, etc. but thanks for the idea.&lt;BR /&gt;Fred&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Jul 2000 13:44:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/boot-alert-script/m-p/2429937#M2641</guid>
      <dc:creator>Fred Martin_1</dc:creator>
      <dc:date>2000-07-11T13:44:28Z</dc:date>
    </item>
  </channel>
</rss>

