On Thu, 21 Nov 2002, Ashley M. Kirchner wrote: > 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?
Why don't you have the script that does the scp follow that command with a "ssh remoteserver restart_command" ? -- \ \/ / _ |~\ _ In God We Trust. All Others Pay Cash. > < / \|\ /|+-< | | "The world is a comedy to those that think, / /\ \\_/| \/ ||__)|_| a tragedy to those who feel." - Horace Walpole -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list