Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-20-2006, 06:46 AM
|
#1
|
Member
Registered: Feb 2005
Location: ~h3av3n~
Distribution: RHEL 4, Fedora Core 3,6,7 Centos 5, Ubuntu 7.04
Posts: 227
Rep:
|
program to autostart a killed service
Is there a program that will monitor running services and if they shutdown due to any problem it will be automatically restarted by the monitoring program.
the reason is clamd got killed and cozed a problem to my qmail smtp server.
|
|
|
02-20-2006, 07:11 AM
|
#2
|
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908
|
|
|
|
02-20-2006, 08:56 AM
|
#3
|
Senior Member
Registered: Nov 2004
Distribution: Mint, MX, antiX, SystemRescue
Posts: 2,337
|
You could edit /etc/inittab and add a respawn event. Here's an example from my inittab file that makes sure mythbackend is always running for runlevels 2-5:
Code:
mt:2345:respawn:/bin/su - mythtv "/usr/local/bin/mythbackend -l /var/log/mythtv/mythbackend"
|
|
|
02-20-2006, 09:43 AM
|
#4
|
Member
Registered: Nov 2005
Location: Detroit, Michigan -- USA
Distribution: Fedora Core
Posts: 90
Rep:
|
There are two other possiblities I know of:
Link: Nagios
This is a network monitoring device that can monitor many services on remote host as well as your local host. You can configure Nagios in conjunction with cron jobs methinks to restart failed services. However, if you're only planning to monitor the local host and not many services across the network, then a tool as powerful tool such as Nagios is overkill and not worth it to you for the time it takes to understand and configure it.
The other option is
Link: Monit
This is also a program that can monitor a host and automatically restart it for you. Unlike Nagios, automatically restarting a failed service seems to be one of Monit's prime directives, while Nagios, though more flexible and powerful, will require some external configuration to get the restarting of services to work.
~Myles
|
|
|
02-21-2006, 12:04 AM
|
#5
|
Member
Registered: Feb 2005
Location: ~h3av3n~
Distribution: RHEL 4, Fedora Core 3,6,7 Centos 5, Ubuntu 7.04
Posts: 227
Original Poster
Rep:
|
thank you very much nice info. sheesh i forgot daemontools that monitor qmail services....
|
|
|
All times are GMT -5. The time now is 01:53 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|