Bug 169024 - Using inotify to automatically restart services
Summary: Using inotify to automatically restart services
Keywords:
Status: CLOSED CANTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: chkconfig
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-09-22 10:22 UTC by Karl Lattimer
Modified: 2014-03-17 02:56 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2007-11-09 17:11:24 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Karl Lattimer 2005-09-22 10:22:00 UTC
Description of problem:
After editing a configuration file it is important to restart services, however!
I've noticed many times in the past that in most cases a configruation file is
specified in the headers of the init scripts, it just occurred to me that it
would be quite possible for inotify to be used to monitor these files and where
appropriate automatically restart services which have had their configuration
file(s) modified.

Important points to consider if this method were to be used:
1, The requirement for a notification system if a service fails because of a
recent change
2, Revert to a previous configuration in the event of service failure

This is just an idea, but an intriguing one to me, to have services
automagically restart themselves (and possibly dependant services also) would be
a big step forward in management of a server.

Comment 1 Bill Nottingham 2005-09-22 16:03:37 UTC
Interesting idea. I suspect that changes for this would go some place other than
chkconfig, as it would be a part of a larger system change that obsoletes it.

Comment 3 Bill Nottingham 2007-11-09 17:11:24 UTC
Closing this, as it's a more general discussion point for replacing init; it's
not relevant to chkconfig itself, as it would never be implemented there.


Note You need to log in before you can comment on or make changes to this bug.