Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 06-11-2011, 09:24 PM   #1
Registered: Feb 2009
Posts: 68

Rep: Reputation: 10
How do I set up alert notification when services startup?

I have tomcat server that requires restart to clear some java issues. I would like the system to send out an email alert that the tomcat got started everytime when it does. Anyway to achieve this whenever someone fires off a service?

Any pointer is appreciated.
Old 06-12-2011, 01:57 AM   #2
LQ Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296

The easiest way is to include a mail command in your startup script (/etc/init.d/) I guess, including the command right after starting Tomcat. Of course your server will need to be set up to deliver email, for example using Postfix.

Kind regards,



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] NAGIOS mail notification by alert type sem007 Linux - Software 4 06-12-2010 02:52 AM
Alert Notification!!!!! nirmit Linux - Server 7 03-20-2009 11:45 AM
Alert Notification on OpenSuse 10.2 jeffvph Linux - Server 2 09-30-2007 11:48 PM
Why I get Updates Alert Notification? jassica_81 Linux - Networking 3 02-10-2006 08:34 AM
RedHat Network Alert Notification Tool Keynote Red Hat 1 03-20-2004 05:29 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:23 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration