- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Reboot Mail
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
04-02-2007 07:41 AM
04-02-2007 07:41 AM
Reboot Mail
I would like to have the scripts , which monitor every 2 hours is the server is rebooted , if rebooted it has to send the list of members mails id in a file.
Thanks & Regards
Bruce
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2007 08:32 AM
04-02-2007 08:32 AM
Re: Reboot Mail
On way to implement notification is to create an 'rc' script in '/sbin/init.d' that executes whenever you transition from run-level 2-to-3. That is, create a startup script in /sbin/rc3.d' that emails your member list whenever your server reboots.
The manpages for 'rc(1M)' describe the rc-startup script requirements.
Regards!
...JRF...
- Tags:
- rc(1M)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2007 03:02 PM
04-02-2007 03:02 PM
Re: Reboot Mail
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2007 04:31 AM
04-03-2007 04:31 AM
Re: Reboot Mail
James a novice i have put a script which will have the who -b out in a file and keepon comapre that file with who -b if any changes [i mean if server rebooted ] it will update that file and also send mail to the list of peoples mail ids given in another file.
Stephenson If we are rebbotin we will know it i accept it if in case of any system crash or system is down for any reason the script has to send mail to the peoples in the mailfile.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2007 04:37 AM
04-03-2007 04:37 AM
Re: Reboot Mail
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2007 05:09 AM
04-03-2007 05:09 AM
Re: Reboot Mail
I agree with the fundamentally flawed approach.
Any system that is going down every few hours has a serious problem.
1) Check hardware with cstm/mstm or xstm
2) See that the system is fully patched to at least a recent bi-annual patch set.
3) See that the system saves crash dumps /etc/rc.config.d/savecrash set the first variable to 1.
This is not a windows box. I know people that have run hpux boxes for years without reboot.
Also, rebooting a system does not "reset mail" the mail queues of inbound and outbound mail will continue to exist.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com