- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Boot Alert Script
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2000 06:42 AM
07-10-2000 06:42 AM
I already have written a script that works fine, I only need to insert it into the rc process someplace.
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.
What's the proper place to put the script?
Thanks,
Fred
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2000 06:45 AM
07-10-2000 06:45 AM
Re: Boot Alert Script
Brian
<*(((>< er
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2000 06:46 AM
07-10-2000 06:46 AM
Re: Boot Alert Script
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).
That way, whenever your server comes back to this level, you'll be notified.
Hope that helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2000 06:47 AM
07-10-2000 06:47 AM
Re: Boot Alert Script
if your sendmail startscript is /sbin/rc2.d/S540sendmail you will have to configure your bootalert script to be say /sbin/rc2.d/S550bootalert.
Good luck.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2000 07:12 AM
07-10-2000 07:12 AM
Re: Boot Alert Script
If that's true, wouldn't my script be placed in rc2.d?
Thanks,
Fred
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2000 07:25 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2000 07:49 AM
07-10-2000 07:49 AM
Re: Boot Alert Script
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.
Brian
<*(((>< er
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2000 07:56 AM
07-10-2000 07:56 AM
Re: Boot Alert Script
Thanks much,
Fred
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2000 04:58 AM
07-11-2000 04:58 AM
Re: Boot Alert Script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2000 05:26 AM
07-11-2000 05:26 AM
Re: Boot Alert Script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2000 06:25 AM
07-11-2000 06:25 AM
Re: Boot Alert Script
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.
HTH!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2000 06:44 AM
07-11-2000 06:44 AM
Re: Boot Alert Script
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.
Fred