Submitted by timmy on Mon, 08/01/2011 - 22:23
On virtualmin, the field "Command to run after making changes to a domain" means i can run any commands?
I managed to deploy high availability virtualmin servers, however i need to restart apache on Server B if virtual server is created using server A. Same goes vise versa.
Status:
Closed (fixed)
Comments
Submitted by andreychek on Mon, 08/01/2011 - 23:00 Comment #1
Yup, you can enter any command you want there.
If you have more than one command you want it to run, what I'd suggest doing is making a script that contains all the commands you want run, and have Virtualmin execute that script.
In your case -- you would need to come up with a command that's capable of restarting Apache on your other server. Once you have the command that does that, you can have Virtualmin run that command.
Submitted by timmy on Wed, 08/03/2011 - 04:06 Comment #2
thanks