Restart apache web apaplication is installed using script installer

Im in a situation where, two virtualmin servers are sharing the same homedir using GFS.

Server A = abc.com = Virtualmin

Server B = abc.com = Virtualmin

Say if I install a web application using script installer on Server A, i noticed apache is restarted.

Is there a way to run a command whenever apache is restarted after a web application installation using script installer.

Status: 
Active

Comments

Howdy -- there's unfortunately not a built-in way to do for just Install Scripts.

The best I can think of would be to go to into Webmin -> Servers -> Apache Webserver -> Module Config, and to change the commands there for "Command to apply configuration" to instead call a script that restarts Apache on all of your servers.

That would end up being used in other circumstances too, such as when modifying a Virtual Server's settings.