Red Hat Bugzilla – Bug 169024
Using inotify to automatically restart services
Last modified: 2014-03-16 22:56:10 EDT
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
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
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.
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.
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.