OpenVZ Forum


Home » General » Support » Execute Script on HN after VM Start (I want to execute a script on the hostnode after the VM has started)
Re: Execute Script on HN after VM Start [message #39026 is a reply to message #39015] Thu, 04 March 2010 09:34 Go to previous messageGo to previous message
bigbohne is currently offline  bigbohne
Messages: 3
Registered: February 2010
Junior Member
TheStig wrote on Thu, 04 March 2010 03:45
You could include a script at the end of the mount-script that sleeps for a couple of seconds, checks if the VPS has started up correctly (using vzlist) and does whatever you want it to do on the HN.


I think this is the best method.
My first aproche was to modify the script in the init.d folder which executes a script after the start of a specific VM.

I will post some sample code and try to add in into the wiki for further use Smile

Thanks alot,
Bigbohne
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: HN default internal IP
Next Topic: Ubuntu 9.04 wrong permissions on /dev/null after restart
Goto Forum:
  


Current Time: Sun Aug 31 21:42:42 GMT 2025

Total time taken to generate the page: 0.10864 seconds