Is there some way to automatically restart a service when a configuration
file changes?  I know I can do it manually, but I'm looking for an automatic
way of doing it.  Basically we have two mail servers that share one particular
config file (a third party file).  Generally one of the servers will get the
changes made to its config file, and then the file gets scp-ed over to the
second server.  I need some way for that second server to then restart sendmail
when it detects a change in the config file (possibly through the file time
stamp).  Right now I'm manually logging onto that second server to restart
sendmail so it takes up the new config file.  I'd like it to do it by itself.
Suggestions?

--
W | I haven't lost my mind; it's backed up on tape somewhere.
  +--------------------------------------------------------------------
  Ashley M. Kirchner <mailto:[EMAIL PROTECTED]>   .   303.442.6410 x130
  IT Director / SysAdmin / WebSmith             .     800.441.3873 x130
  Photo Craft Laboratories, Inc.            .     3550 Arapahoe Ave. #6
  http://www.pcraft.com ..... .  .    .       Boulder, CO 80303, U.S.A.





-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to